$npx skillfedfor your agent

pytest-dotenv

A py.test plugin that parses environment files before running tests

SkipPyPI TestingReleased Jun 20205.5M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_dotenv-0.5.2-py3-none-any.whl
v0.5.2 · released 2020-06-16 · 2 runtime deps: pytest, python-dotenv

No—not for new projects. The package is archived and abandoned since 2020, with no maintenance or security updates. While it may still work with older pytest and Python versions, there is significant risk of incompatibility with modern tooling. Consider using python-dotenv directly in your test fixtures or conftest.py, or look for actively maintained alternatives that provide the same functionality.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest and python-dotenv as runtime dependencies; no known system-level blockers.
  • Installation is straightforward with low friction.
  • However, the package is archived and abandoned—the last release was in 2020, over 2250 days ago.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so there are no restrictions on commercial or private use, modification, or redistribution.

last release 2020-06-16 (2250 days) · last repo commit 2025-07-30 · 210 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,523,005 downloads/mo, #2,082 on PyPI

Verify before relying

pip install pytest-dotenv

# In pytest.ini or tox.ini:
[pytest]
env_files = .env

# Or run: pytest --envfile .env
  • Whether the package remains compatible with pytest versions released after 2020
  • Whether python-dotenv's API changes since 2020 affect this plugin's functionality
  • Active community forks or maintained alternatives that provide the same functionality
Same gist for agents: .md · .json

What it is and what it does

pytest-dotenv is a pytest plugin that integrates python-dotenv to automatically load environment variables from .env files before tests run. It detects .env files in the working directory or ancestor directories and populates os.environ without overriding existing system variables by default. The plugin supports multiple configuration files (e.g., .env, .test.env, .deploy.env) defined in pytest config files like pytest.ini or tox.ini, and can be controlled via command-line flags.

The package depends on pytest and python-dotenv as its only runtime dependencies, making installation lightweight. However, it is archived and abandoned—the last release was in June 2020, and there have been no updates since. While it remains popular (top 5000 packages), the lack of maintenance means it may not be compatible with recent pytest or Python versions, and security or compatibility issues will not be addressed.

Use it for

  • Load test-specific environment variables from .env files without modifying system environment during CI/CD pipelines
  • Manage multiple environment configurations (.env, .test.env, .deploy.env) for different test scenarios
  • Automatically populate pytest fixtures or test code with environment-based configuration without manual setup
  • Override environment variables selectively during test runs while preserving production settings in the base environment

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—not for new projects.

The package is archived and abandoned since 2020, with no maintenance or security updates. While it may still work with older pytest and Python versions, there is significant risk of incompatibility with modern tooling. Consider using python-dotenv directly in your test fixtures or conftest.py, or look for actively maintained alternatives that provide the same functionality.

Install

pytest-dotenv on PyPI

Before you install

Installation is straightforward with low friction. However, the package is archived and abandoned—the last release was in 2020, over 2250 days ago. While it has maintained a stable position in the top 5000 PyPI packages, no active maintenance means security updates or compatibility fixes are unlikely.

Requires pytest and python-dotenv as runtime dependencies; no known system-level blockers.

License in practice

Licensed under MIT (permissive), so there are no restrictions on commercial or private use, modification, or redistribution.

Quickstart

pip install pytest-dotenv

# In pytest.ini or tox.ini:
[pytest]
env_files = .env

# Or run: pytest --envfile .env

Verify before relying

  • Whether the package remains compatible with pytest versions released after 2020
  • Whether python-dotenv's API changes since 2020 affect this plugin's functionality
  • Active community forks or maintained alternatives that provide the same functionality

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pytestpython-dotenv
MaintenanceAbandoned 2,250 days since the last release
Last repo commit repository archived
First released
Downloads5,523,005 / month, #2,082 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Evidence: pytest_dotenv-0.5.2-py3-none-any.whl

Tags

Capabilities
pytest environment variablesload .env file pytestpytest dotenv pluginenvironment configuration testingpytest env file loaderpython-dotenv pytest integrationtest environment setup
Topics
archivedtest-configuration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “load .env file pytest”

  • pytest-dotenvA pytest plugin that automatically loads environment variables from…
  • pytest-envA pytest plugin that loads environment variables from configuration…
  • django-dotenvLoads environment variables from a .env file into Django's manage.py…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-env · pytest-pythonpath · poetry-dotenv-plugin · python-dotenv · dotenv · load-dotenv · django-dotenv · environ-config · everett · dump-env