pyscicat.client.ScicatClient¶
- class pyscicat.client.ScicatClient(base_url: str, username: str, password: str, timeout_seconds: Optional[int] = None)[source]¶
Responsible for communicating with the Scicat Catamel server via http
- __init__(base_url: str, username: str, password: str, timeout_seconds: Optional[int] = None)[source]¶
Initialize a new instance. This method attempts to create a tokenad_a from the provided username and password
- Parameters
- base_urlstr
Base url. e.g. http://localhost:3000/api/v3
- usernamestr
username to login with
- passwordstr
password to login with
- timeout_seconds[int], optional
timeout in seconds to wait for http connections to return, by default None
Methods
__init__
(base_url, username, password[, ...])Initialize a new instance.
upload_attachment
(attachment[, datasetType])Upload an Attachment.
upload_datablock
(datablock)Upload a Datablock
upload_raw_dataset
(dataset)Upload a raw dataset