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: warn when the given .env path is a directory
- fix: report command permission errors without a traceback
- Do not interpolate single-quoted values (fixes #422)
- fix(main): support character devices in _is_file_or_fifo
- set_key: Add ability to write key with no value (`None`)
- Preserve quoted dotenv key names when setting values
- Don't rewrite the .env file when unset_key finds no such key
- Return false when dotenv contains only valueless declarations
- Accept quoted file paths in the IPython dotenv magic
- Clean up rewrite files when output close fails
- Docs
- Python not yet supported