Skip to main content

ORCID service client

Project description

[![Build Status](](

# Inspire ORCID service client

This package is service client for ORCID API used in inspire-next.

## Client usage

# Configure settings.
import inspire_service_orcid.conf
d = dict(

# Use the client.
from inspire_service_orcid.client import OrcidClient
client = OrcidClient('mytoken', '0000-0002-0942-3697')
response = client.get_all_works_summary()
putcode = response['group'][0]['work-summary'][0]['put-code']

In order to use time_execution to collect metrics, configure it first:
import time_execution
from inspire_service_orcid import hooks

hooks = [

## Development

# Create a venv and install the requirements:
$ make venv

# Run isort and lint:
$ make isort
$ make lint

# Run all the tests:
$ make test # tox against Python27 and Python36.
$ tox -e py27 # tox against a specific Python version.
$ pytest # pytest against the active venv.

# Run a specific test:
$ make test/tests/ # tox against Python27 and Python36.
$ tox -e py27 -- tests/ # tox against a specific Python version.
$ pytest tests/ # pytest against the active venv.

To publish on PyPi, first set the PyPi credentials:

# Edit .pypirc:
$ cat $HOME/.pypirc
username: myuser
password: mypass

# Tag the new version:
$ git tag 1.1.1
# Then generate and publish:
$ make
$ make publish
# Commit the file:
$ git add .
$ git commit -m '1.1.1 released'
$ git push origin master --tags

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inspire-service-orcid-9.0.0.tar.gz (10.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page