Skip to main content

Zenodo deposit tool

Project description

zenodo-deposit: A command line interface to making file deposits to Zenodo

Python tests Commit activity License

A command line interface to making file deposits to Zenoodo

Understanding the use case

Sometimes is it more convenient to make a deposit to Zenodo using a command line interface (CLI) rather than through the web interface. This is especially true when you have a large number of files to deposit, or when you want to automate the deposit process as part of a larger workflow. This script provides tools to make file deposits to Zenodo using the command line.

Installation

This can installed using pipx or uv:

$ pipx install zenodo-deposit

or

$ uv tool install zenodo-deposit

Usage

$ zd --help
Usage: zd [OPTIONS] COMMAND [ARGS]...

Options:
  --version                       Show the version and exit.
  --sandbox, --dev / --production, --prod
                                  Set Zenodo environment to sandbox or
                                  production  [default: sandbox]
  --config-file PATH              Path to the configuration file
  --log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
                                  Set the log level
  --help                          Show this message and exit.

Commands:
  create    Create a new deposition, without uploading a file
  deposit   Deposit a file
  retrieve  Retrieve deposition details
  search    Search for depositions
  upload    Upload one or more files, with metadata, creating a new deposit

Example:

$ zd --dev --log-level DEBUG upload --title 'Testing URL with larger dataset' --type 'dataset' --keywords 'rmp, epa' --name 'Fitzgerald, Will' --affiliation 'EDGI' --description 'Location database' --metadata metadata.toml https://edg.epa.gov/EPADataCommons/public/OA/EPA_SmartLocationDatabase_V3_Jan_2021_Final.csv

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

zenodo_deposit-0.1.5.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenodo_deposit-0.1.5-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file zenodo_deposit-0.1.5.tar.gz.

File metadata

  • Download URL: zenodo_deposit-0.1.5.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for zenodo_deposit-0.1.5.tar.gz
Algorithm Hash digest
SHA256 756de6aa32644bf31a40452557cc4f3382b7c6907e6820ea0059c6bb70a3dc8f
MD5 ef5c5c9d453c450dc2505b77a753f475
BLAKE2b-256 8119bb1f3e319f21ff186dfcb3b1daefa658032bba9eca5cd4514be5b4439f17

See more details on using hashes here.

File details

Details for the file zenodo_deposit-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: zenodo_deposit-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for zenodo_deposit-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c89945912e1840b5f9fd5181cafb9abbd19ac4d192f368b8382dec3e21ff0cbc
MD5 adfecd973db2f3661d9e42fd466bc856
BLAKE2b-256 e1cb648f8e0b86b29be0ec8e35b06be1951bca1100b00b612af961924546d539

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page