Skip to content

Releases: theskumar/python-dotenv

Version 0.19.0

24 Jul 16:06

Choose a tag to compare

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

Version 0.18.0

20 Jun 16:51

Choose a tag to compare

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

Version 0.17.1

29 Apr 19:04

Choose a tag to compare

Fixed

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

Version 0.17.0

02 Apr 21:17

Choose a tag to compare

Changed

  • Make dotenv get <key> only show the value, not key=value (#313 by @bbc2).

Added

  • Add --override/--no-override option to dotenv run (#312 by @zueve and @bbc2).

Version 0.16.0

27 Mar 09:06

Choose a tag to compare

Changed

  • The default value of the encoding parameter for load_dotenv and dotenv_values is now "utf-8" instead of None (#306 by @bbc2).
  • Fix resolution order in variable expansion with override=False (#287 by @bbc2).