hyfi.env
Env
Bases: BaseSettings
Configuration class for environment variables in HyFI.
Attributes:
Name | Type | Description |
---|---|---|
_config_name_ |
str
|
str: Name of the configuration. |
DOTENV_FILENAME |
str
|
Optional[str]: Name of the dotenv file. |
DOTENV_DIR |
str
|
Optional[str]: Path to the dotenv file. |
DOTENV_FILE |
str
|
Optional[str]: Full path to the dotenv file. |
HYFI_RESOURCE_DIR |
Optional[str]
|
Optional[str]: Path to the resource directory. |
HYFI_GLOBAL_ROOT |
Optional[str]
|
Optional[str]: Path to the global root directory. |
HYFI_GLOBAL_WORKSPACE_NAME |
Optional[str]
|
Optional[str]: Name of the global workspace. |
HYFI_PROJECT_NAME |
Optional[str]
|
Optional[str]: Name of the project. |
HYFI_PROJECT_DESC |
Optional[str]
|
Optional[str]: Description of the project. |
HYFI_PROJECT_ROOT |
Optional[str]
|
Optional[str]: Path to the project root directory. |
HYFI_PROJECT_WORKSPACE_NAME |
Optional[str]
|
Optional[str]: Name of the project workspace. |
HYFI_LOG_LEVEL |
Optional[str]
|
Optional[str]: Log level for HyFI. |
HYFI_VERBOSE |
Optional[Union[bool, str, int]]
|
Optional[Union[bool, str, int]]: Verbosity level for HyFI. |
HYFI_NUM_WORKERS |
Optional[int]
|
Optional[int]: Number of workers for HyFI. |
CACHED_PATH_CACHE_ROOT |
Optional[str]
|
Optional[str]: Path to the cached path cache root. |
Source code in hyfi/env/env.py
ProjectEnv
Bases: Env
Project configuration class for environment variables in HyFI.
Attributes:
Name | Type | Description |
---|---|---|
CUDA_DEVICE_ORDER |
Optional[str]
|
Optional[str]: CUDA device order. |
CUDA_VISIBLE_DEVICES |
Optional[Union[str, int]]
|
Optional[str]: CUDA visible devices. |
WANDB_PROJECT |
Optional[str]
|
Optional[str]: Name of the Weights & Biases project. |
WANDB_DISABLED |
Optional[Union[bool, str]]
|
Optional[str]: Whether Weights & Biases is disabled. |
WANDB_DIR |
Optional[str]
|
Optional[str]: Path to the Weights & Biases directory. |
WANDB_NOTEBOOK_NAME |
Optional[str]
|
Optional[str]: Name of the Weights & Biases notebook. |
WANDB_SILENT |
Optional[Union[bool, str]]
|
Optional[Union[bool, str]]: Whether Weights & Biases is silent. |
LABEL_STUDIO_SERVER |
Optional[str]
|
Optional[str]: URL of the Label Studio server. |
KMP_DUPLICATE_LIB_OK |
Optional[str]
|
Optional[str]: Whether to allow duplicate libraries for Intel MKL. |
TOKENIZERS_PARALLELISM |
Optional[Union[bool, str]]
|
Optional[Union[bool, str]]: Whether tokenizers are parallelized. |
WANDB_API_KEY |
Optional[SecretStr]
|
Optional[SecretStr]: Weights & Biases API key. |
HUGGING_FACE_HUB_TOKEN |
Optional[SecretStr]
|
Optional[SecretStr]: Hugging Face Hub token. |
OPENAI_API_KEY |
Optional[SecretStr]
|
Optional[SecretStr]: OpenAI API key. |
ECOS_API_KEY |
Optional[SecretStr]
|
Optional[SecretStr]: ECOS API key. |
FRED_API_KEY |
Optional[SecretStr]
|
Optional[SecretStr]: FRED API key. |
NASDAQ_API_KEY |
Optional[SecretStr]
|
Optional[SecretStr]: NASDAQ API key. |
HF_USER_ACCESS_TOKEN |
Optional[SecretStr]
|
Optional[SecretStr]: Hugging Face user access token. |
LABEL_STUDIO_USER_TOKEN |
Optional[SecretStr]
|
Optional[SecretStr]: Label Studio user token. |