Files
habr-article-API/src/config.py

15 lines
353 B
Python

from decouple import config
db_name = config('DB_NAME')
postgres_user = config('POSTGRES_USER')
postgres_password = config('POSTGRES_PASSWORD')
host_name = config('HOST_NAME')
port = config('PG_PORT')
enable_api_docs = config('ENABLE_API_DOCS', cast=bool)
uvicorn_logging_level = config('UVI_LOGGING_LEVEL')
logging_level = config('LOGGING_LEVEL')