- Test against Python 3.7.
- Use python-dotenv for parsing .env files.
Env.read_env
behaves mostly the same except that a warning isn't raised by default if a .env file isn't found. Passverbose=True
to raise a warning.
Features:
- Backwards-incompatible:
Env.read_env
raises a warning instead of an error when.env
isn't found (#10). Thanks lachlancooper for the suggestion. - Add optional Django support. Install using
pip install environs[django]
, which enablesenv.dj_db_url
andenv.dj_email_url
.
Features:
- Fix compatibility with marshmallow 3 beta.
Features:
Features:
Other changes:
- Backwards-incompatible: Drop support for Python 3.3 and 3.4.
Features:
- Add
url
parser that returns aurllib.parse.ParseResult
(#6). Thanks IlyaSemenov for the suggestion.
Bug fixes:
- Every instance of
Env
gets its own parser map, so callingenv.parser_for
for one instance doesn't affect other instances.
- Add
Env.read_env
method for reading.env
files.
- Support for proxied variables (#2).
- Backwards-incompatible: Remove
env.get
method. Useenv()
instead. - Document how to read
.env
files (#1).
- First PyPI release.