Releases: theskumar/python-dotenv
Releases · theskumar/python-dotenv
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_pathargument ofset_keyandunset_keynow has a type ofUnion[str, os.PathLike]instead of justos.PathLike(#347 by @bbc2). - The
streamargument ofload_dotenvanddotenv_valuescan 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
ValueErrorifquote_modeisn't one ofalways,autoorneverinset_key(#330 by @bbc2). - When writing a value to a .env file with
set_keyordotenv set <key> <value>(#330 by @bbc2):- Use single quotes instead of double quotes.
- Don't strip surrounding quotes.
- In
automode, don't add quotes if the value is only made of alphanumeric characters (as determined bystring.isalnum).