load_dotenv function now returns False. (#388 by @larsks)open instead of io.open. (#389 by @rabinadk1)parse_it to Related Projects by (#410 by @naorlivne)encoding (Optional[str]) parameter to get_key, set_key and unset_key.
(#379 by [@bbc2])entry_points parameter of setuptools.setup (#376 by
[@mgorny]).set_key, add missing newline character before new entry if necessary. (#361 by
[@bbc2])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]).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]).ValueError if quote_mode isn't one of always, auto or never in
set_key (#330 by [@bbc2]).set_key or dotenv set <key> <value> (#330
by [@bbc2]):
auto mode, don't add quotes if the value is only made of alphanumeric characters
(as determined by string.isalnum).PYTHONPATH (#318 by [@befeleme]).dotenv get <key> only show the value, not key=value (#313 by [@bbc2]).--override/--no-override option to dotenv run (#312 by [@zueve] and [@bbc2]).encoding parameter for load_dotenv and dotenv_values is
now "utf-8" instead of None (#306 by [@bbc2]).override=False (#287 by [@bbc2]).--export option to set to make it prepend the binding with export (#270 by
[@jadutter]).set command create the .env file in the current directory if no .env file was
found (#270 by [@jadutter]).