Skip to main content

A tool for doing big uploads to Zenodo

Project description

BigZenodo

This is a command-line tool for making large uploads to Zenodo. It requires a Zenodo API access token and uses the Restful API.

Installation

This tool can be installed using PyPi, which will also install the dependencies of requests and markdown2.


pip install bigzenodo

Usage

It is a command-line tool that takes in a JSON file (described below) that lists the information for the submission, and the API token for the Zenodo account (in a separate file). It also takes two flags, whether to use the Zenodo sandbox and whether to complete the submission.


usage: Tool to upload large files to Zenodo using the Zenodo RESTFUL API

       [-h] --submission SUBMISSION --accessTokenFile ACCESSTOKEN 

       [--sandbox] [--publish]



optional arguments:

  -h, --help                     show this help message and exit

  --submission SUBMISSION        JSON file with submission details

  --accessTokenFile ACCESSTOKEN  File with Zenodo API access token

  --sandbox                      Whether to use the sandbox for testing purposes

  --publish                      Whether to actually complete the publication of the data to Zenodo. Irreversible!

Submission File

The tool takes in a JSON file with the fields below. existing_zenodo_id is optional and denotes the identifier for an existing Zenodo submission which this submission will update.


{

  "file_list": [

    "colour_of_magic.tsv",

    "light_fantastic.tsv"

  ],

  "title": "The Troubles of Luggage",

  "author": "Rincewind",

  "author_affiliation": "Unseen University",

  "description_file": "output_description.md",

  "existing_zenodo_id": "1156241"

}

The description_file should be a file that contains text to be shown on the Zenodo page. If it is a Markdown file (and the filename ends with '.md'), it will be rendered appropriately.

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

bigzenodo-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file bigzenodo-0.1.2.tar.gz.

File metadata

  • Download URL: bigzenodo-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for bigzenodo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c6e5d8ab85909a12a82cbf9ab24fdd4aa1f6e8eeafb0e78df82f7591935f6fcc
MD5 a8a7fbbb6c38472a432da82c7dff12e9
BLAKE2b-256 075d8f361051762de3b1541e3905b59d9ee3a97503e27ce1271849c5c8e7949e

See more details on using hashes here.

Supported by

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