Python Dotenv Versions Save

Reads key-value pairs from a .env file and can set them as environment variables. It helps in developing applications following the 12-factor principles.

v1.0.1

3 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/theskumar/python-dotenv/compare/v1.0.0...v1.0.1

v1.0.0

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/theskumar/python-dotenv/compare/v0.21.1...v1.0.0

v0.21.1

1 year ago

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 and list 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

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

v0.21.0

1 year ago

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

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

v0.20.0

2 years ago

Added

  • Add encoding (Optional[str]) parameter to get_key, set_key and unset_key. (#379 by @bbc2)

Fixed

  • Use dict to specify the entry_points parameter of setuptools.setup (#376 by @mgorny).
  • Don't build universal wheels (#387 by @bbc2).

v0.19.2

2 years ago

What's Changed

Fixed

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

v0.19.1

2 years ago

What's Changed

New Contributors

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

v0.19.0

2 years ago

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).

v0.18.0

2 years ago

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).

v0.17.1

3 years ago

Fixed

  • Fixed tests for build environments relying on PYTHONPATH (#318 by @befeleme).