Zenodo client written in Python
- Download zenodolib.py
- Generate a personal access token in Zenodo and/or Zenodo sandbox (see https://sandbox.zenodo.org/account/settings/applications/)
- Save token string content somewhere and use it in your script like this:
my_token = 'blah-blah-blah'
my_sandbox_token = 'blah-blah-blah-whatever'
from zenodolib import ZenodoHandler
# to use sandbox, pass test=True and access_token=my_sandbox_token:
api = ZenodoHandler(access_token=my_sandbox_token, proxies={}, test=True) See examples.py