Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 577 Bytes

README.textile

File metadata and controls

23 lines (17 loc) · 577 Bytes

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