h1. arkpy
Simple tools built around the "Archival Resource Key":https://wiki.ucop.edu/display/Curation/ARK specification, allowing minting and validating of ARKs via code and the command-line.
h2. Code
""" python """ import arkpy ark = arkpy.mint('42409', 'ededk', 'mycoll-') if not arkpy.validate(ark): print "Ruh roh"
h2. Command-line usage
$ bin/arkmint --authority=42409 --template='eeddeeddk' --prefix='digcoll-' 42409/digcoll-23496q15t $ bin/arkvalidate 42409/digcoll-23496q15t 42409/digcoll-23496q15t is valid? True