We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Maybe it would be useful to implement a prefix and suffix optional feature, like:
prefix
suffix
Envs:
DJANGO_DEBUG=False DJANGO_SECRET=abc
>>> from gconfigs import GConfigs >>> from gconfigs.backends import LocalEnv >>> envs = GConfigs(backend=LocalEnv, prefix="DJANGO_") >>> envs.as_bool("DEBUG") False >>> envs("SECRET") "abc"
With context managers:
>>> from gconfigs import GConfigs >>> from gconfigs.backends import LocalEnv >>> envs = GConfigs(backend=LocalEnv) >>> with envs.prefix("DJANGO"): ... envs("SECRET") ... "abc"
Well, suffix would do the same, but you know... following the suffix logic.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Maybe it would be useful to implement a
prefix
andsuffix
optional feature, like:Envs:
With context managers:
Well,
suffix
would do the same, but you know... following the suffix logic.The text was updated successfully, but these errors were encountered: