Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.4%) to scientific vocabulary
Repository
RO-Crate uploader for Zenodo
Basic Info
- Host: GitHub
- Owner: ResearchObject
- License: apache-2.0
- Language: Python
- Default Branch: main
- Size: 121 KB
Statistics
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 3
- Releases: 2
Metadata Files
README.md
ro-crate-zenodo
Upload RO-Crates to Zenodo and automatically fill the Zenodo metadata.
This package uses the legacy Zenodo API and is not compatible with other InvenioRDM instances. For RO-Crate uploads using the InvenioRDM API, use the rocrate-inveniordm package instead.
Setup
Install the package
Install from PyPI using pip or your preferred package manager:
pip install rocrate-zenodo
Set up a Zenodo personal access token
Create a file called ~/.config/zenodo.ini on your computer with the following contents:
```ini
if using the Zenodo sandbox
[zenodo:sandbox] sandboxapitoken =
if using the real Zenodo
[zenodo] api_token = ```
Now create a Zenodo access token:
- Register for a Zenodo account if you don’t already have one.
- Go to your profile and select Applications.
- You should see a section called "Personal access tokens." Click the "New token" button.
- Give the token a name that reminds you of what you're using it for (e.g. RO-Crate uploader token)
- Select the scopes
deposit:writeanddeposit:actions. - Click "Create."
- Copy the access token into your
~/.config/zenodo.inifile.
The resulting file should look like this:
```ini
if using the Zenodo sandbox
[zenodo:sandbox] sandboxapitoken = your-sandbox-token-here
if using the real Zenodo
[zenodo] api_token = your-token-here ```
The rocrate-zenodo package will read this token whenever it connects to Zenodo in order to perform actions under your account. It's recommended to use the Zenodo sandbox until you're confident using the package.
Usage
To upload a crate to Zenodo sandbox:
rocrate_zenodo -s demo/demo_crate
Replace demo/demo_crate with the path to the RO-Crate directory you want to upload. The -s flag sets the destination to the Zenodo sandbox; you can omit -s to upload to real Zenodo.
Once complete, you should see the draft record in your Zenodo dashboard.
For further help and options, run:
rocrate_zenodo --help
Tips
- Set
givenNameandfamilyNameon authors of the RO-Crate. This ensures that author names are formatted correctly in Zenodo. - Use the SPDX URI for the top-level license, e.g.
https://spdx.org/licenses/CC-BY-NC-SA-4.0.html. Other URIs for licenses are not currently well supported. - Check your upload carefully in the Zenodo web interface before publishing. Not all metadata will be carried across from the RO-Crate, and some may be transferred incorrectly. Please raise an issue if you notice a discrepancy.
For Developers
See the Developer Guide.
Owner
- Name: Research Object community
- Login: ResearchObject
- Kind: organization
- Website: https://www.researchobject.org/
- Repositories: 34
- Profile: https://github.com/ResearchObject
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: rocrate-zenodo
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Eli
family-names: Chadwick
affiliation: University of Manchester
orcid: 'https://orcid.org/0000-0002-0035-6475'
- given-names: Stian
family-names: Soiland-Reyes
affiliation: University of Manchester
orcid: 'https://orcid.org/0000-0001-9842-9718'
repository-code: 'https://github.com/ResearchObject/ro-crate-zenodo/'
abstract: >-
A Python package to upload RO-Crates to Zenodo and
automatically fill the Zenodo metadata.
keywords:
- RO-Crate
- rocrate
- Zenodo
license: Apache-2.0
version: v0.1.1
date-released: '2024-08-23'
GitHub Events
Total
- Issues event: 3
- Issue comment event: 4
Last Year
- Issues event: 3
- Issue comment event: 4
Packages
- Total packages: 1
-
Total downloads:
- pypi 26 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 2
pypi.org: rocrate-zenodo
Upload RO-Crates to Zenodo and automatically fill the Zenodo metadata
- Homepage: https://www.researchobject.org/ro-crate/
- Documentation: https://rocrate-zenodo.readthedocs.io/
- License: Apache-2.0
-
Latest release: 0.1.1
published over 1 year ago
Rankings
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- black * development
- flake8 * development
- mypy * development
- pytest * development
- rocrate *
- zenodo-client >=0.3.3