Documentation of python magic class methods
This commit is contained in:
parent
864ca91e5c
commit
e33fecaef0
13 changed files with 119 additions and 32 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue