Create base_config
This commit is contained in:
parent
c29c7369a4
commit
9c5f74d515
|
@ -1,2 +1,2 @@
|
|||
pydantic==1.10.7
|
||||
|
||||
environs==9.5.0
|
||||
|
|
11
settings.py
Normal file
11
settings.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
|
||||
from pydantic import BaseSettings, validator
|
||||
from environs import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class ApiConfig(BaseSettings):
|
||||
host: str = os.environ.get('API_HOST')
|
||||
token: str = os.environ.get('API_TOKEN')
|
Loading…
Reference in New Issue
Block a user