-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
config.py
36 lines (27 loc) · 873 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from enum import Enum
from pydantic import BaseSettings, PostgresDsn
class EnvironmentType(str, Enum):
DEVELOPMENT = "development"
PRODUCTION = "production"
TEST = "test"
class BaseConfig(BaseSettings):
class Config:
case_sensitive = True
class Config(BaseConfig):
DEBUG: int = 0
DEFAULT_LOCALE: str = "en_US"
ENVIRONMENT: str = EnvironmentType.DEVELOPMENT
POSTGRES_URL: PostgresDsn = (
"postgresql+asyncpg://user:password@127.0.0.1:5432/db-name"
)
OPENAI_API_KEY: str = None
RELEASE_VERSION: str = "0.1.0"
SHOW_SQL_ALCHEMY_QUERIES: int = 0
SECRET_KEY: str = "super-secret-key"
JWT_ALGORITHM: str = "HS256"
JWT_EXPIRE_MINUTES: int = 60 * 24
EMAIL = "test@pandabi.ai"
PASSWORD = "12345"
DEFAULT_ORGANIZATION = "PandaBI"
DEFAULT_SPACE = "pandasai"
config: Config = Config()