Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить конфигуратор #21

Open
zhikh23 opened this issue Dec 22, 2024 · 0 comments
Open

Добавить конфигуратор #21

zhikh23 opened this issue Dec 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@zhikh23
Copy link
Contributor

zhikh23 commented Dec 22, 2024

Попробуем сделать многослойную конфигурацию сервиса:

  • слой постоянных настроек, будет храниться в config/(dev/prod)
  • слой локальных настроек, в .env-е.
    Основная фича будет в том, что следующие слои могут переопределять значения настроек, заданных ранее.

Для постоянных конфигов есть смысл использовать yaml (и одноимённую Python библиотеку), а для валидации объектов конфига - Pydantic.

@zhikh23 zhikh23 self-assigned this Dec 22, 2024
@zhikh23 zhikh23 added the enhancement New feature or request label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant