Rapidata client
RapidataClient #
RapidataClient(
client_id: str | None = None,
client_secret: str | None = None,
environment: str = "rapidata.ai",
oauth_scope: str = "openid",
cert_path: str | None = None,
token: dict | None = None,
leeway: int = 60,
)
The Rapidata client is the main entry point for interacting with the Rapidata API. It allows you to create orders and validation sets.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client_id
|
str
|
The client ID for authentication. |
None
|
client_secret
|
str
|
The client secret for authentication. |
None
|
environment
|
str
|
The API endpoint. |
'rapidata.ai'
|
oauth_scope
|
str
|
The scopes to use for authentication. In general this does not need to be changed. |
'openid'
|
cert_path
|
str
|
An optional path to a certificate file useful for development. |
None
|
token
|
dict
|
If you already have a token that the client should use for authentication. Important, if set, this needs to be the complete token object containing the access token, token type and expiration time. |
None
|
leeway
|
int
|
An optional leeway to use to determine if a token is expired. Defaults to 60 seconds. |
60
|
Attributes:
Name | Type | Description |
---|---|---|
order |
RapidataOrderManager
|
The RapidataOrderManager instance. |
validation |
ValidationSetManager
|
The ValidationSetManager instance. |
Source code in src/rapidata/rapidata_client/rapidata_client.py
reset_credentials #
Reset the credentials saved in the configuration file for the current environment.