https://github.com/explore-platform/archiving
Scripts/tools for archiving datasets to Zenodo
https://github.com/explore-platform/archiving
Last synced: 11 months ago
JSON representation
Scripts/tools for archiving datasets to Zenodo
- Host: GitHub
- URL: https://github.com/explore-platform/archiving
- Owner: explore-platform
- Created: 2024-02-21T17:30:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T18:14:12.000Z (about 2 years ago)
- Last Synced: 2025-02-05T21:53:49.368Z (about 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Validate and publish records on ZENODO
These codes will validate, publish the files in zenodo and create record
## Description
There are 2 script.
1. To validate the files of the project
2. To upload to zenodo
### Executing program
* Launch the python code with the appropriate arguments
```
python validate_files.py -d directory -o files_to_omit
```
* The argument directory takes the directory path with the files to be validated.
* omit list is an option argument to provide as text file containing the list of files to be omitted
* for reference check the file in the repo
```
python archive_on_zenodo.py -d directory -j json -t token -o files_to_omit
```
* json argument takes the metadata json file. For eg check sample in the folder
* Please build the json according to your need as in the documentation https://developers.zenodo.org/#rest-api
* token is an argument which can be provided here or saved in the .env to be fetched automatically
* -t and -o are optional
## Authors
CHIRAG DEVAIAH
## Acknowledgements
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 101004214.