14 lines
251 B
Python
14 lines
251 B
Python
from datetime import datetime
|
|
from pydantic import BaseSettings
|
|
|
|
|
|
class Config(BaseSettings):
|
|
host: str = '127.0.0.1'
|
|
port: int = 8888
|
|
birthdate: datetime = datetime(2007, 10, 13)
|
|
|
|
|
|
config = Config(_env_file='.env')
|
|
|
|
|
|
__all__ = ['config']
|