python-dotenv
https://github.com/theskumar/python-dotenv
Python
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.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported1 Subscribers
Add a CodeTriage badge to python-dotenv
Help out
- Issues
- chore(deps): update pytest requirement from >=9.0.3 to >=9.1.1
- fix: escape backslashes in set_key so values round-trip
- added 3 tests to test_variables.py
- chore(deps): update mkdocs requirement from >=1.5.0 to >=1.6.1
- fix: write set_key values containing single quotes as double-quoted
- Feature Request: Automatically copy `default.env` to `.env`
- Automatically copy `default.env` to `.env`
- Add on_duplicate parameter to handle duplicate keys
- fix(parser): support bash-style single-quote splices in values
- feat: add `strict` parameter to `load_dotenv()` and `dotenv_values()`
- Docs
- Python not yet supported