Comparison
pytest-dotenv vs pytest-env
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A py.test plugin that parses environment files before running tests
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install pytest-dotenvSet environment variables for pytest sessions.
Actively maintained. Last release 7 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install pytest-envIn short
- pytest-dotenv is archived: avoid it for new projects.
- pytest-env is the most used: 22.8M downloads a month, 4.0× more than pytest-dotenv.
- pytest-env also has the best Pythie’s Index (88).
- Safe default for a new project: pytest-env.
Side by side
| Metric | pytest-dotenv | pytest-env |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 4 | 88 |