Releases: theskumar/python-dotenv
Releases · theskumar/python-dotenv
v1.0.1
What's Changed
- FIx year in release date in changelog.md by @jankislinger in #453
- Gracefully handle code which has been imported from a zipfile by @samwyma in #456
- Use pathlib.Path in tests by @eumiro in #466
- fixes #473 Use https in README links by @Nicals in #474
- Allow modules using load_dotenv to be reloaded when launched in a separate thread by @freddyaboulton in #497
- Fix error handling in the rewrite function by @Qwerty-133 in #468
- Add python 3.12 and pypy3.10 to test suite by @theskumar in #498
New Contributors
- @jankislinger made their first contribution in #453
- @samwyma made their first contribution in #456
- @eumiro made their first contribution in #466
- @Nicals made their first contribution in #474
- @freddyaboulton made their first contribution in #497
- @Qwerty-133 made their first contribution in #468
Full Changelog: v1.0.0...v1.0.1
Version 1.0.0
What's Changed
- Handle situations where the cwd does not exist. by @jctanner in #446
- Add python-decouple as a related project by @kcarnold in #451
- Drop support for python 3.7, add python 3.12-dev by @theskumar in #449
New Contributors
Full Changelog: v0.21.1...v1.0.0
Version 0.21.1
Added
- Use Python 3.11 non-beta in CI (#438 by @bbc2)
- Modernize variables code (#434 by @Nougat-Waffle)
- Modernize main.py and parser.py code (#435 by @Nougat-Waffle)
- Improve conciseness of cli.py and init.py (#439 by @Nougat-Waffle)
- Improve error message for
get
andlist
commands when env file can't be opened (#441 by @bbc2) - Updated Licence to align with BSD OSI template (#433 by @lsmith77)
Fixed
- Fix Out-of-scope error when "dest" variable is undefined (#413 by @theGOTOguy)
- Fix IPython test warning about deprecated
magic
(#440 by @bbc2) - Fix type hint for dotenv_path var, add StrPath alias (#432 by @eaf)
New Contributors
- @saimehsan made their first contribution in #426
- @Praveensenpai made their first contribution in #437
- @Nougat-Waffle made their first contribution in #434
- @mivade made their first contribution in #442
- @lsmith77 made their first contribution in #433
- @eaftan made their first contribution in #432
Full Changelog: v0.21.0...v0.21.1
Version 0.21.0
What's Changed
Added
- CLI: add support for invocations via 'python -m'. (#395 by @theskumar)
load_dotenv
function now returnsFalse
. (#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 ofio.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 #389
- @larsks made their first contribution in #388
- @naorlivne made their first contribution in #410
- @eggplants made their first contribution in #393
- @sammck made their first contribution in #407
- @harveer07 made their first contribution in #415
- @theGOTOguy made their first contribution in #414
Full Changelog: v0.20.0...v0.21.0
Version 0.19.2
Version 0.19.1
What's Changed
- CHANGELOG.md: Fix typos discovered by codespell by @cclauss in #350
- Add Python 3.10 support by @theskumar in #359
New Contributors
Full Changelog: v0.19.0...v0.19.1
Version 0.19.0
Changed
Added
- The
dotenv_path
argument ofset_key
andunset_key
now has a type ofUnion[str, os.PathLike]
instead of justos.PathLike
(#347 by @bbc2). - The
stream
argument ofload_dotenv
anddotenv_values
can now be a text stream (IO[str]
), which includes values likeio.StringIO("foo")
andopen("file.env", "r")
(#348 by @bbc2).
Version 0.18.0
Changed
- Raise
ValueError
ifquote_mode
isn't one ofalways
,auto
ornever
inset_key
(#330 by @bbc2). - When writing a value to a .env file with
set_key
ordotenv 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 bystring.isalnum
).