-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
30 lines (26 loc) · 885 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
from pydantic import BaseSettings
from typing import List
class ProdConfig(BaseSettings):
environment: str = "production"
postgres_host: str = "localhost"
postgres_port: str = "5432"
postgres_user: str = "postgres"
postgres_password: str = "postgres"
postgres_db_name: str = "dbname"
logs_dir: str = "logs"
class DevConfig(BaseSettings):
environment: str = "develop"
postgres_host: str = "localhost"
postgres_port: str = "5432"
postgres_user: str = "postgres"
postgres_password: str = "postgres"
postgres_db_name: str = "dbname"
logs_dir: str = "logs"
class TestsConfig(BaseSettings):
environment: str = "tests"
postgres_host: str = "localhost"
postgres_port: str = "5432"
postgres_user: str = "postgres"
postgres_password: str = "postgres"
postgres_db_name: str = "dbname"
logs_dir: str = "logs"