Skip to content

Instantly share code, notes, and snippets.

@mjgiarlo
Created March 10, 2011 16:03
Show Gist options
  • Save mjgiarlo/864337 to your computer and use it in GitHub Desktop.
Save mjgiarlo/864337 to your computer and use it in GitHub Desktop.
showing arkpy scripts spitting out noids and arks
mjg@mjg-desktop:~/workspace/arkpy$ ./bin/arkmint --help
Usage: arkmint [options]
Options:
-h, --help show this help message and exit
--authority=AUTHORITY
Name Assigning Authority Number
--template=TEMPLATE identifier template: e is an xdigit:
0123456789bcdfghjkmnpqrstvwxz; d is a digit:
0123456789; k is checkchar: special xdigit
--prefix=PREFIX Identifier prefix
--bare
mjg@mjg-desktop:~/workspace/arkpy$ ./bin/arkmint
ark:/13030/nq943d251
mjg@mjg-desktop:~/workspace/arkpy$ ./bin/arkmint --authority=42409
ark:/42409/8k28cs25w
mjg@mjg-desktop:~/workspace/arkpy$ ./bin/arkvalidate ark:/42409/8k28cs25w
ark:/42409/8k28cs25w is valid
mjg@mjg-desktop:~/workspace/arkpy$ ./bin/arkmint --authority=42409 --bare
42409/kz45m762d
mjg@mjg-desktop:~/workspace/arkpy$ ./bin/arkvalidate 42409/kz45m762d
42409/kz45m762d is valid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment