nyx_client.configuration¶
SDK configuration classes.
Classes¶
Configuration for the Nyx client. |
|
Nyx configuration types. |
|
Extended configuration for Nyx client with API integration. |
Module Contents¶
- class nyx_client.configuration.BaseNyxConfig¶
Configuration for the Nyx client.
- classmethod from_env(env_file='.env', override_token=None)¶
Create a BaseNyxConfig instance from environment variables.
- Parameters:
- Returns:
A new BaseNyxConfig instance.
- Raises:
ValueError – If a required variable is not set in the env file or the file does not exist.
- __str__()¶
Return a string representation of the configuration.
- Returns:
A JSON string of the configuration.
- class nyx_client.configuration.NyxConfigExtended¶
Extended configuration for Nyx client with API integration.
- provider: ConfigType¶
The type of configuration provider.
- base_config: BaseNyxConfig¶
The base Nyx configuration.
- classmethod from_env(provider, env_file='.env', override_token=None)¶
Create a NyxConfigExtended instance from environment variables.
- Parameters:
provider (ConfigType) – The type of configuration provider.
env_file (str) – Relative (to the working directory) or absolute path to the environment file.
override_token (str | None) – Token to override the default authentication.
- Returns:
A new NyxConfigExtended instance.
- Raises:
ValueError – If a required variable is not set in the env file, the env file does not exist or the corresponding api_key env var is not set.