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

Even more flexible sources #23

Open
silvanmelchior opened this issue Nov 9, 2021 · 0 comments
Open

Even more flexible sources #23

silvanmelchior opened this issue Nov 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@silvanmelchior
Copy link
Collaborator

silvanmelchior commented Nov 9, 2021

For now, ConfZSources are isolated dataclasses with a common (empty) base class. However, this could be improved:

  • ConfZSources could be ConfZ classes again, so can use config_cources keyword argument. This would allow e.g. in ConfZFileSource to not have a file_from_cl and file_from_env but rather file only and then use the sources to populate this e.g. from the environment
  • The ConfZSource bae class could have common attributes like allow, deby, allow_all, prefix, map, ... with the corresponding logic in the Loader base class. So, this functionality would be supported by all loaders.
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