{"id":25895611,"url":"https://github.com/diamondlightsource/zenodo-uploader","last_synced_at":"2025-07-03T23:32:44.434Z","repository":{"id":145696268,"uuid":"249411734","full_name":"DiamondLightSource/zenodo-uploader","owner":"DiamondLightSource","description":"Automated Zenodo uploader using REST API","archived":false,"fork":false,"pushed_at":"2020-03-30T13:56:26.000Z","size":49,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-02T22:33:10.900Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiamondLightSource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-23T11:25:58.000Z","updated_at":"2024-08-09T14:05:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"04b0d235-1773-41cb-9e89-2656c698a62b","html_url":"https://github.com/DiamondLightSource/zenodo-uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DiamondLightSource/zenodo-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fzenodo-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fzenodo-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fzenodo-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fzenodo-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiamondLightSource","download_url":"https://codeload.github.com/DiamondLightSource/zenodo-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fzenodo-uploader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421304,"owners_count":23464009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T22:32:12.584Z","updated_at":"2025-07-03T23:32:44.407Z","avatar_url":"https://github.com/DiamondLightSource.png","language":"Python","readme":"# zenodo-uploader\nAutomated Zenodo uploader using REST API\n\nAPI details - https://developers.zenodo.org/\n\nRequires Zenodo account \u0026 access token from\nhttps://zenodo.org/account/settings/applications/tokens/new/\n\nUsage\n-----\n\n```\nusage: zenodo_uploader.py [-h] [-z ZENODO_ID] [-s] [-m METADATA] [-T TITLE]\n                          [-C CREATOR] [-A AFFILIATION] [-K KEYWORD]\n                          [-D DESCRIPTION] [-d DIRECTORY] [-x] [-a ARCHIVE]\n                          [files [files ...]]\n\npositional arguments:\n  files                 individual files\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -z ZENODO_ID, --zenodo_id ZENODO_ID\n                        zenodo upload key\n  -s, --sandbox         use sandbox mode\n  -m METADATA, --metadata METADATA\n                        json metadata file\n  -T TITLE, --title TITLE\n                        upload title\n  -C CREATOR, --creator CREATOR\n                        creator name e.g. Public, Joe Q.\n  -A AFFILIATION, --affiliation AFFILIATION\n                        creator affiliation\n  -K KEYWORD, --keyword KEYWORD\n                        keyword to associate\n  -D DESCRIPTION, --description DESCRIPTION\n                        description\n  -d DIRECTORY, --directory DIRECTORY\n                        directory to upload\n  -x, --checksum        compute md5 checksum of uploaded files\n  -a ARCHIVE, --archive ARCHIVE\n                        pack directory to named archive before upload\n```\n\nOptions - metadata\n- -T - title - allowed exactly once, upload title\n- -C - creator, multiple, as \"Doe, John R.\"\n- -A - affiliation - either one for all creators or one per creator\n- -K - keyword - multiple\n- -D - description - long form prose describing the deposition\n- -m - metadata file - can pass above as a JSON formatted file\n\nOptions - file\n- -d - directory - multiple allowed\n- -a - archive - (optional) if using -d must be equal number, else if\n  using FILES only one - will pack the data into .tar.gz or .zip files\n  before uploading\n- FILES - list of files to be deposited (if no directories passed)\n- -x - check sum (with md5) files before upload to allow comparison\noption\n\nOptions - zenodo specific\n- -z - zenodo upload ID\n- -s - sandbox (requires diffent ID, used for development)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fzenodo-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiamondlightsource%2Fzenodo-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fzenodo-uploader/lists"}