pysepal.scripts.sepal_client.SepalClient#
- class pysepal.scripts.sepal_client.SepalClient(*, session_id=None, module_name=None, auth=None, base_url=None, timeout=30.0, verify=None)[source]#
pysepal_api.SepalClientplus the four legacy file verbs.Each legacy verb delegates to
self.files.*and emits aDeprecationWarning.Attributes
Methods
Deprecated: download a file.
Create a remote directory (deprecated; use files.mkdir instead).
List files in a remote folder (deprecated; use files.list instead).
Write a file to the remote (deprecated; use files.write instead).
- Parameters:
session_id (str | None)
module_name (str | None)
auth (httpx.Auth | None)
base_url (str | None)
timeout (float | httpx.Timeout)
verify (bool | None)
- SepalClient.get_file(file_path, parse_json=False)[source]#
Deprecated: download a file. Use
files.read_json/files.read_bytes.- Parameters:
file_path (str)
parse_json (bool)
- Return type:
Any
- SepalClient.get_remote_dir(folder, parents=False)[source]#
Create a remote directory (deprecated; use files.mkdir instead).
- Parameters:
folder (str | Path)
parents (bool)
- Return type:
PurePosixPath