AEADataEditor / replication-template-development

Development repo for the replication template
2 stars 6 forks source link

Add Zenodo downloader #7

Closed larsvilhuber closed 4 months ago

larsvilhuber commented 2 years ago

https://github.com/dvolgyes/zenodo_get

Should be as simple as adding it to the requirements.txt

larsvilhuber commented 2 years ago

Draft:

import zenodo_get
import PyYAML

# read config file YAML

# parse.args: DOI of some sort

# download file (what is the name?)

# create directory based on last segment of DOI (e.g., zenodo.NNNNN)

# unzip files into that directory
larsvilhuber commented 5 months ago

Problem: Zenodo changed API, zenodo_get updated, but now requires Python 3.8. Some of our systems use Python 3.6 (won't install).

On Python 3.8+:

zenodo-get @ git+https://github.com/dvolgyes/zenodo_get@5cac72c9ecc5fdd4a0ea7ef846a6a35b57457d45

installs.

larsvilhuber commented 4 months ago

The current file actually works, with zenodo_get >= 1.6.1

bcfd2c000af777ab8738e91c492968657339d593