Documentation of python magic class methods

This commit is contained in:
Julian Stirling 2025-07-10 16:44:18 +01:00
parent 864ca91e5c
commit e33fecaef0
13 changed files with 119 additions and 32 deletions

View file

@ -16,6 +16,12 @@ class Zenodo:
"""A class that packages data for Zenodo."""
def __init__(self, api_token, use_sandbox=True):
"""Initialise the zenodo packager with the API token.
:param api_token: Your Zenodo API key.
:param use_sandbox: True to pushing to ``sandbox.zenodo.org`` rather than
``zenodo.org`` for testing.
"""
self._api_token = api_token
self._use_sandbox = use_sandbox
if use_sandbox: