dotenv
Deprecated package
What it is and what it does
dotenv is a Python package that reads environment variables from a .env file and loads them into the process environment. It was designed to simplify configuration management by allowing developers to store sensitive or environment-specific settings in a local file rather than hardcoding them or relying on system environment setup.
However, this package is no longer maintained. The maintainer has explicitly deprecated it and directs all users to python-dotenv, a maintained fork. The repository is dormant (last commit 541 days ago), and no active development or security updates are occurring. Installing this package introduces maintenance risk and should be avoided in favor of its actively maintained successor.
Use it for:
- Loading environment variables from a .env file in legacy projects that already depend on this specific package.
- Migrating away from this package to python-dotenv as part of a dependency upgrade.
- Understanding why a project uses dotenv and planning a transition to a maintained alternative.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Loads environment variables from a .env file into the process environment, but this package is deprecated and unsupported—use python-dotenv instead.
No. This package is explicitly deprecated by its maintainer and dormant for over a year. The maintainer directs users to python-dotenv instead. Install python-dotenv directly rather than this unsupported fork.
Install
dotenv on PyPI
pip
pip install dotenvuv
uv add dotenvpoetry
poetry add dotenvInstalling dotenv
Before you install
Dormant since 541 days ago with no active maintenance. The package explicitly directs users to switch to python-dotenv, its maintained successor.
License in practice
License status is unclear; no SPDX identifier or raw license text is available in the package metadata.
Quickstart
pip install dotenv
from dotenv import load_dotenv
load_dotenv()
This package is deprecated; the maintainer explicitly recommends using python-dotenv instead. Installing it is not advised.
Verify before relying
- Whether this package has any known security issues not yet indexed in OSV as of the fact sheet date.
- Whether the single runtime dependency python-dotenv is the recommended replacement or a transitive dependency.
- Actual Python version compatibility, since requires_python is unspecified.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — python-dotenv |
| Maintenance | dormant — 541 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 10,768,924/month — #1,435 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dotenv-0.9.9-py2.py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
load-dotenvAutomatically loads environment variables from…
permissive · top 15,000 on PyPI
python-dotenvReads key-value pairs from a .env file and sets…
permissive · top 100 on PyPI
poetry-dotenv-pluginA Poetry plugin that automatically loads…
permissive · top 15,000 on PyPI
django-dotenvLoads environment variables from a .env file…
permissive · top 15,000 on PyPI
pytest-dotenvA pytest plugin that automatically loads…
permissive · top 5,000 on PyPI
bestconfigLoads configuration from multiple file formats…
permissive · top 15,000 on PyPI
typed-settingsLoads and merges settings from multiple sources…
permissive · top 5,000 on PyPI
rootutilsFinds your project root directory and…
permissive · top 15,000 on PyPI
pytest-envA pytest plugin that loads environment…
permissive · top 1,000 on PyPI
pydantic-settingsLoads and validates application settings from…
permissive · top 100 on PyPI