solidipes.utils.zenodo_utils module
- solidipes.utils.zenodo_utils.check_response(response, expected_status_code, task_description)[source]
- solidipes.utils.zenodo_utils.get_existing_deposition_infos(identifier, access_token, sandbox=False)[source]
- solidipes.utils.zenodo_utils.get_host_and_id(identifier)[source]
Extract Zenodo host and study ID from string identifier
URL has one of the following forms: - https://zenodo.org/record/1234567#xxx - https://zenodo.org/deposit/1234567#xxx - https://sandbox.zenodo.org/record/1234567#xxx - https://sandbox.zenodo.org/deposit/1234567#xxx - https://doi.org/10.5281/zenodo.1234567
DOI has the form 10.5281/zenodo.1234567
- Parameters:
identifier (str) – URL or DOI of the study to download
- Returns:
- Zenodo host and study ID
host: “zenodo.org” or “sandbox.zenodo.org”
- Return type:
(str, str)