scitacean.Profile#
- class scitacean.Profile(url, file_transfer)[source]#
Parameters for connecting to a specific instance of SciCat.
The fields of a profile correspond to the arguments of the constructors of
Client. They can be overridden by the explicit constructor arguments.When constructing a client from a profile, the
profileargument may be one of:If
profileis aProfile, it is returned as is.If
profileis apathlib.Path, a profile is loaded from the file at that path.- If
profileis astr and
profilematches the name of a builtin profile, that profile is returned.Otherwise, a profile is loaded from a file with this path, potentially by appending
".profile.toml"to the name.
- If
Constructors
__init__(url, file_transfer)Attributes
URL of the SciCat API.
A file transfer object for uploading and downloading files.
- __init__(url, file_transfer)#
-
file_transfer:
FileTransfer|None# A file transfer object for uploading and downloading files.
See the File transfer. section for implementations provided by Scitacean.