orca_sdk.orca_credentials#
ApiKeyInfo
#
OrcaCredentials
#
Class for managing Orca API credentials
list_api_keys
staticmethod
#
List all API keys that have been created for your org
Returns:
-
list[ApiKeyInfo]
–A list of named tuples, with the name and creation date time of the API key
is_authenticated
staticmethod
#
Check if you are authenticated to interact with the Orca API
Returns:
-
bool
–True if you are authenticated, False otherwise
set_api_key
staticmethod
#
Set the API key to use for authenticating with the Orca API
Note
The API key can also be provided by setting the ORCA_API_KEY
environment variable
Parameters:
-
api_key
(str
) –The API key to set
-
check_validity
(bool
, default:True
) –Whether to check if the API key is valid and raise an error otherwise
Raises:
-
ValueError
–if the API key is invalid and
check_validity
is True