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

Use pydantic-settings to read config from different sources #2535

Open
Tracked by #1790
vladsavelyev opened this issue May 6, 2024 · 0 comments
Open
Tracked by #1790

Use pydantic-settings to read config from different sources #2535

vladsavelyev opened this issue May 6, 2024 · 0 comments

Comments

@vladsavelyev
Copy link
Member

Description of feature

Part of #1790 effort.

We already use Pydantic to validate plot configs, command-line config, and the interactive function parameters. However, globally config is still a singleton module, and there is a lot of custom logic to update it from different sources (command line, multiple YAML locations, environment variables).

pydantic-settings sounds like a relevant project to replace that logic, and also structure the config better. It comes with features to load settings from various sources.

Not a very high priority as the custom functions work well, and existing type hints help with validation, so moving it to 1.23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant