Skip to main content

zenodoclient

Build Status PyPI

Python package to access the Zenodo API (REST and OAI-PMH) programmatically and from the command line.

Install

To install from pypi

pip install zenodoclient

Instructions for a development installation can be found in CONTRIBUTING.md.

Curating deposits

To curate deposits on Zenodo, you need an access token. Then you can use the CLI:

zenodo --access-token $YOURTOKEN ls

Accessing OAI-PMH feeds

Zenodo disseminates the metadata for communities via OAI-PMH. This metadata can be accessed programmatically from python as folows:

>>> from zenodoclient.oai import Records
>>> recs = Records('dictionaria')
>>> len(recs)
18

We can list the latest version for each Dictionaria dictionary:

>>> import itertools
>>> for d, records in itertools.groupby(sorted(recs, key=lambda r: (r.repos.repos, r.version), reverse=True), lambda r: r.repos.repos):
...     print(d, next(records).tag)
...     
wersing v1.0
tseltal v1.0.1
teop v1.0
sidaama v1.0
sanzhi v1.0
palula v1.0
nen v1.1
medialengua v1.0
kalamang v1.0
hdi v1.1
guarayu v1.0
diidxaza v1.0
daakaka v1.1.1

and look at metadata:

>>> recs[0].doi
'10.5281/zenodo.3066952'
>>> recs[0].citation
'Henrik Liljegren. (2019). dictionaria/palula: Palula Dictionary (Version v1.0) [Data set]. Zenodo. http://doi.org/10.5281/zenodo.3066952'

Metadata

Release files for zenodoclient 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zenodoclient 0.5.1
File Size Uploaded
zenodoclient-0.5.1.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zenodoclient 0.5.1
File Interpreter ABI Platform
zenodoclient-0.5.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 36.5 kB

Release files / zenodoclient-0.5.1.tar.gz

Download URL zenodoclient-0.5.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d1a0bfa53af792eb8de73a89cb6315d8b3ed967230398872c5841173c8d17bab
BLAKE2b-256 checksum
How to use checksums
ac3a296b70bc30d096c6e2003771d62c516e5231b57a0aaa12b1ad06c21e898c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / zenodoclient-0.5.1-py2.py3-none-any.whl

Download URL zenodoclient-0.5.1-py2.py3-none-any.whl
Size 17.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d26e137c9f4b56c7c5a539e71fc6554738ca2c5ef6a863d89ef77a54e98f4387
BLAKE2b-256 checksum
How to use checksums
830bb37d17e01a5f8c9c4c30fecb558ea206dd50d4b9e08ac8c1ffd4fd4fa676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page