@@ -0,0 +1,996 @@
+#! /usr/bin/env python%0A%0Aimport os%0Aimport sys%0Aimport json%0Aimport clstm%0Aimport shutil%0A%0Afrom kraken.lib.models import load_clstm%0A%0Arnn = load_clstm(sys.argv%5B1%5D)%0A%0Aalphabet = %5B%5D%0Acls = clstm.Classes()%0Acls.resize(1)%0Afor i in range(1, rnn.rnn.noutput()):%0A    cls%5B0%5D = i%0A    alphabet.append(rnn.rnn.decode(cls))%0A%0As = %7B%7D%0As%5B'summary'%5D = raw_input('summary: ')%0As%5B'description'%5D = raw_input('description: ')%0As%5B'author'%5D = raw_input('author: ')%0As%5B'author-email'%5D = raw_input('author-email: ')%0As%5B'license'%5D = raw_input('license: ')%0As%5B'url'%5D = raw_input('url: ')%0As%5B'script'%5D = raw_input('scripts (split by whitespace): ').split(' ')%0As%5B'graphemes'%5D = alphabet%0As%5B'name'%5D = os.path.basename(sys.argv%5B1%5D)%0A%0Aodir = os.path.splitext(os.path.basename(sys.argv%5B1%5D))%5B0%5D%0Atry: %0A    os.mkdir(odir)%0Aexcept:%0A    pass%0A%0Awith open(os.path.join(odir, 'DESCRIPTION'), 'wb') as fp:%0A    json.dump(s, fp, sort_keys=True, indent=4, separators=(',', ': '))%0A%0Ashutil.copyfile(sys.argv%5B1%5D, os.path.join(odir, os.path.basename(sys.argv%5B1%5D)))%0A

Add simple tools for creating metadata