A basic implemention of Archival Resource Key utils in Python
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
README.textile
arkpy.py
ez_setup.py
setup.py
test.py

README.textile

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