We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fec247 commit a3c5583Copy full SHA for a3c5583
centml/sdk/config.py
@@ -1,8 +1,13 @@
1
import os
2
-from pydantic_settings import BaseSettings
+from pydantic_settings import BaseSettings, SettingsConfigDict
3
+from pathlib import Path
4
5
6
class Config(BaseSettings):
7
+
8
+ # It is possible to override the default values by setting the environment variables
9
+ model_config = SettingsConfigDict(env_file=Path('.env'))
10
11
CENTML_WEB_URL: str = "https://app.centml.com/"
12
CENTML_CONFIG_PATH: str = os.path.expanduser("~/.centml")
13
CENTML_CRED_FILE: str = "credentials.json"
0 commit comments