envparse
envparse copied to clipboard
Environment Variable Parsing for Python
Improves on the original warning.warn message (for when an envfile wasn't found) by including the search path used for a given file.
Negative numbers are converted into positive ones. env.list seem to work with subcast I think the problem is here, the minus sign is stripped: https://github.com/rconradharris/envparse/blob/e67e70307af19d925e194b2a163e0608dae7eb55/envparse.py#L132
Prior to this change, the environment always took precedence when there was a value specified in both the env file and the environment. This was not suitable to all use-cases...
## Problem In Kubernetes, sensitive values cannot be safely stored in the containers environment as this is exposed to any who can view a pod's spec: this is usually a...
This change enables a user to utilise a `preprocessor` or a `postprocessor` with the schema syntax. E.g. ``` test_env = Env(TEST=dict(cast=str, preprocessor=lambda v: v.upper())) ``` Prior to this, the pre/post...
I haven't found a way to parse dictionary with boolean subtypes. The variable in .env file is: `FOO=bar1=true, bar2=false` and I parse it with `env.dict('FOO', subcast=bool)`. Expected result is `{'bar1':True,...
Hi @rconradharris, I noticed that there's a number of hanging issues and PRs nobody paid attention to in 3 years. Have you considered finding another pair of hands to help...
I'm trying to raise the warning level of the envparse module but the logger is named after the file and so doesn't have a consistent name. Maybe just call it...