amarillo-enhancer/amarillo-enhancer/services/config.py

12 lines
347 B
Python

from pydantic import ConfigDict
from pydantic_settings import BaseSettings
class Config(BaseSettings):
env: str = 'DEV'
graphhopper_base_url: str = 'https://api.mfdz.de/gh'
stop_sources_file: str = 'data/stop_sources.json'
model_config = ConfigDict(extra='allow')
config = Config(_env_file='config', _env_file_encoding='utf-8')