pkgsrc/devel/py-dotenv/DESCR
adam daa699b2d3 py-dotenv: updated to 0.12.0
0.12.0:
Changed
- Use current working directory to find `.env` when bundled by PyInstaller

Fixed
- Fix escaping of quoted values written by `set_key`
- Fix `dotenv run` crashing on environment variables without values
- Remove warning when last line is empty

0.11.0:
Added
- Add `interpolate` argument to `load_dotenv` and `dotenv_values` to disable interpolation

Changed
- Use logging instead of warnings

Fixed
- Fix installation in non-UTF-8 environments
- Fix PyPI classifiers

0.10.5:
Fixed
- Fix handling of malformed lines and lines without a value
  - Don't print warning when key has no value.
  - Reject more malformed lines (e.g. "A: B", "a='b',c").
- Fix handling of lines with just a comment

0.10.4:
Added
- Make typing optional
- Print a warning on malformed line
- Support keys without a value

0.10.3
- Improve interactive mode detection
- Refactor parser to fix parsing inconsistencies
  - Interpret escapes as control characters only in double-quoted strings.
  - Interpret `#` as start of comment only if preceded by whitespace.

0.10.2
- Add type hints and expose them to users
- `load_dotenv` and `dotenv_values` now accept an `encoding` parameter, defaults to `None`
- Fix `str`/`unicode` inconsistency in Python 2: values are always `str` now.
- Fix Unicode error in Python 2, introduced in 0.10.0.

0.10.1
- Fix parsing of variable without a value

0.10.0
- Add support for UTF-8 in unquoted values
- Add support for trailing comments
- Add backslashes support in values
- Add support for newlines in values
- Force environment variables to str with Python2 on Windows
- Drop Python 3.3 support
- Fix stderr/-out/-in redirection

0.9.0
- Add `--version` parameter to cli
- Enable loading from current directory
- Add 'dotenv run' command for calling arbitrary shell script with .env
2020-03-21 19:41:55 +00:00

3 lines
190 B
Text

python-dotenv reads the key,value pair from .env and adds them to environment
variable. It is great of managing app settings during development and in
production using 12-factor principles.