Skip to content

emory-libraries/pidman-client

Repository files navigation

Overview

Travis-CI build status

Code Coverage

Code Climate

Requirements Status

pidservices provides a python module with client code for interacting with the Pid Manager application via REST API.

License

This software is distributed under the Apache 2.0 License.

Components

pidservices.clients

Python client for access to the pidman Rest API and utility methods for dealing with ARKs

pidservices.djangowrapper.shortcuts

Convenience version of the REST API client initialized using Django settings

scripts

The scripts directory includes some example scripts for batch processing pid actions, such as allocating a preseet number of ARKs or migrating a set of ARK target urls from one url pattern to another.

Testing

Tests can be run using py.test directly, or via the setup script as python setup.py test. For continuous integration, enable coverage and xunit output like this:

py.test --cov=pidservices --cov-report xml --junitxml=tests.xml

Or run use setup.py to install dependencies and test requirements like this:

python setup.py test --addopts "--cov=pidservices --cov-report xml --junitxml=junit_tests.xml"