python-dotenv is a Python utility that reads key-value pairs from a .env file and sets them as environment variables. This is especially useful for managing configuration values, secrets, or settings outside of source code, in line with the 12-factor app principles. Commonly used in Flask, Django, and other frameworks, it helps maintain clean and secure codebases across environments like development, staging, and production.

Features

  • Loads environment variables from .env files
  • Integrates with Flask and Django projects
  • Supports parsing of quoted and multiline values
  • Works with os.environ in Python
  • CLI interface to read or set variables
  • Follows 12-factor app configuration practices

Project Samples

Project Activity

See All Activity >

Categories

System

License

BSD License

Follow Python-Dotenv

Python-Dotenv Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Python-Dotenv!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python System Software

Registered

2025-07-02