ZenodoRecord
- class ZenodoRecord(conceptrecid)[source]
Bases:
objectHelper for querying all versions of a Zenodo concept record.
The class fetches all versions for a given
conceptrecidfrom the Zenodo records API and exposes convenience methods for version lookup and file metadata extraction.- __init__(conceptrecid)[source]
Initialize a record client for a Zenodo concept record id.
- Parameters:
conceptrecid – Zenodo concept record id shared by all versions of the record.
- get_file_links(id: int) List[str][source]
Return download links for all files in a version.
- Parameters:
id – Zenodo record id of the target version.
- get_filenames(id: int) List[str][source]
Return file names for all files in a version.
- Parameters:
id – Zenodo record id of the target version.
Methods
Initialize a record client for a Zenodo concept record id. |
|
Return the list of record ids for all available versions. |
|
Return all version records returned by the Zenodo API query. |
|
Return download links for all files in a version. |
|
Return file names for all files in a version. |
|
Return the record marked as the latest version. |
|
Return the Zenodo record id of the latest version. |
|
Return a specific version record by its record id. |