python-dotenv
python-dotenv copied to clipboard
Add method to update multiple key/values to .env
update_dict_to_dotenv was implemented to support for updating multiple environment variables at once.
This method is necessary because set_key can update only one environment variable at once.
Feel free to ask any questions or give your opinion. Thanks.
Following things were changed.
-
update_dict_to_dotenvwas added tomain.py -
make_env_linewas extracted fromset_key -
test_update_dict_to_dotenvwas added totest_main.py - Update
tests/__init__.pyto importupdate_dict_to_dotenv
@theskumar Could you take a look at this PR?
I make the commit history clearer.