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
- Fix empty values in get_cli_string
- Document shell completion setup
- Fix find_dotenv in interactive IDE consoles
- Add an optional native parser backend with pure-Python fallback
- Proposal: optional native parser backend with pure-Python fallback
- Add support for Python 3.15
- test: pin the contents kept when a symlinked .env is replaced
- fix: preserve a leading BOM when set_key and unset_key rewrite a file
- feat: add opt-in $(command) substitution for .env values
- Substitute ${name:-default} when the variable is set but empty (POSIX)
- Docs
- Python not yet supported