Python-dotenv

Latest version: v1.0.1

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.21.0

What's Changed

Added
* CLI: add support for invocations via 'python -m'. (395 by theskumar)
* `load_dotenv` function now returns `False`. (388 by larsks)
* CLI: add --format= option to list command. (407 by sammck)

Fixed
* Drop Python 3.5 and 3.6 and upgrade GA (393 by eggplants)
* Use `open` instead of `io.open`. (389 by rabinadk1)
* Improve documentation for variables without a value (390 by bbc2)
* Add `parse_it` to Related Projects by (410 by naorlivne)
* Update README.md by (415 by harveer07)
* Improve documentation with direct use of MkDocs by (398 by bbc2)

New Contributors
* rabinadk1 made their first contribution in https://github.com/theskumar/python-dotenv/pull/389
* larsks made their first contribution in https://github.com/theskumar/python-dotenv/pull/388
* naorlivne made their first contribution in https://github.com/theskumar/python-dotenv/pull/410
* eggplants made their first contribution in https://github.com/theskumar/python-dotenv/pull/393
* sammck made their first contribution in https://github.com/theskumar/python-dotenv/pull/407
* harveer07 made their first contribution in https://github.com/theskumar/python-dotenv/pull/415
* theGOTOguy made their first contribution in https://github.com/theskumar/python-dotenv/pull/414

**Full Changelog**: https://github.com/theskumar/python-dotenv/compare/v0.20.0...v0.21.0

0.19.2

What's Changed

Fixed

* Add missing trailing newline before adding new entry with `set_key` by bbc2 in https://github.com/theskumar/python-dotenv/pull/361


**Full Changelog**: https://github.com/theskumar/python-dotenv/compare/v0.19.1...v0.19.2

0.19.1

What's Changed
* CHANGELOG.md: Fix typos discovered by codespell by cclauss in https://github.com/theskumar/python-dotenv/pull/350
* Add Python 3.10 support by theskumar in https://github.com/theskumar/python-dotenv/pull/359

New Contributors
* cclauss made their first contribution in https://github.com/theskumar/python-dotenv/pull/350

**Full Changelog**: https://github.com/theskumar/python-dotenv/compare/v0.19.0...v0.19.1

0.19.0

Changed

- Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. (341 by bbc2).

Added

- The `dotenv_path` argument of `set_key` and `unset_key` now has a type of `Union[str, os.PathLike]` instead of just `os.PathLike` (347 by bbc2).
- The `stream` argument of `load_dotenv` and `dotenv_values` can now be a text stream (`IO[str]`), which includes values like `io.StringIO("foo")` and `open("file.env", "r")` (348 by bbc2).

0.18.0

Changed

- Raise `ValueError` if `quote_mode` isn't one of `always`, `auto` or `never` in `set_key` (330 by bbc2).
- When writing a value to a .env file with `set_key` or `dotenv set <key> <value>` (330 by bbc2):
- Use single quotes instead of double quotes.
- Don't strip surrounding quotes.
- In `auto` mode, don't add quotes if the value is only made of alphanumeric characters (as determined by `string.isalnum`).

0.17.1

Fixed

- Fixed tests for build environments relying on `PYTHONPATH` (318 by befeleme).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.