arkpy

Simple tools built around the Archival Resource Key and Noid specifications, allowing minting and validating of ARKs via code and the command-line.


License
Other
Install
pip install arkpy==0.5

Documentation

arkpy

Simple tools built around the Archival Resource Key specification, allowing minting and validating of ARKs via code and the command-line.

Code

  """ python """
  import arkpy
  ark = arkpy.mint('42409', 'ededk', 'mycoll-')
  if not arkpy.validate(ark):
      print "Ruh roh"

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