GitXplorerGitXplorer
m

arkpy

public
10 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
9b8d2c1c2791645f308a0bf03e322910a928bd9f

Merge pull request #5 from joshuago78/master

mmjgiarlo committed 10 years ago
Unverified
43fe541a1ba7f02d3ffb86634731dcfc6ff4d705

fixed problem with print functions in ez_setup module to make it backwards compatible with python2

committed 10 years ago
Unverified
95740c8dc9d405268ad7645d5f86f342fcbcda20

Merge pull request #4 from joshuago78/master

mmjgiarlo committed 10 years ago
Unverified
4fcf2b5869b6805e1f119f5eb03bc0b339639ccc

python3 compatibility edits

committed 11 years ago
Unverified
26619cc15716cd9d2847182e5db60b90004498b4

ups version to 0.5: now with unit tests, pep8 tweaks, and validation strips ark:/ scheme

mmjgiarlo committed 14 years ago
Unverified
3a6c69baf6957adf95bc2ec0504ca42d0d22d17c

sets default authority in mint script, adds option for noids (bare ARKs) in mint script, makes bare the default option, adds .gitignore, ups version to 0.3

mmjgiarlo committed 14 years ago

README

The README file for this repository.

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