pytest-helpers-namespace
Pytest Helpers Namespace Plugin
Decision gist · record as of 2026-08-14
Yes, if you are using an older pytest version and your test suite is stable. The plugin is simple, has no external dependencies beyond pytest, and solves a real organizational problem. However, do not use it in new projects or if you need active maintenance—the package is abandoned and may break with future pytest releases. Consider alternatives or inline helpers in conftest.py for new work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency (pytest).
- However, the package is abandoned—last release was 2021-12-29 and last commit 2022-10-10.
- No active maintenance means bugs or compatibility issues with newer pytest versions will not be addressed.
License · maintenance · safety
Apache Software License 2.0 (permissive) — Licensed under Apache Software License 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
last release 2021-12-29 (1689 days) · last repo commit 2022-10-10 · 58 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 230,571 downloads/mo, #9,105 on PyPI
Alternatives
Verify before relying
pip install pytest-helpers-namespace
# In conftest.py:
import pytest
@pytest.helpers.register
def my_helper(value):
return value
# In test file:
def test_example():
assert pytest.helpers.my_helper(True) is True- Compatibility with pytest versions released after 2022-10-10 is unknown and untested.
- Whether nested helper namespaces (pytest.helpers.can.haz) work reliably with current pytest is unverified.
What it is and what it does
pytest-helpers-namespace is a pytest plugin that creates a shared namespace accessible via pytest.helpers, allowing you to register helper functions in conftest.py and call them directly from test files without importing them. This reduces boilerplate in test files and centralizes helper definitions. The plugin supports nested namespaces, so you can organize helpers hierarchically (e.g., pytest.helpers.can.haz.foo).
The package depends only on pytest and installs with low friction. However, it has been abandoned since late 2022 with no active maintenance. The last release was 2021-12-29, meaning it may not be tested or compatible with recent pytest versions or Python releases beyond those listed in its classifiers.
Use it for
- Centralize test utilities in conftest.py and access them via pytest.helpers without import statements in every test file.
- Organize related helper functions into nested namespaces (e.g., pytest.helpers.database.connect) for better code structure.
- Share common test setup functions across a large test suite without polluting the global namespace or test file imports.
- Reduce test file boilerplate by making frequently used helper functions available through a single pytest.helpers entry point.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are using an older pytest version and your test suite is stable.
The plugin is simple, has no external dependencies beyond pytest, and solves a real organizational problem. However, do not use it in new projects or if you need active maintenance—the package is abandoned and may break with future pytest releases. Consider alternatives or inline helpers in conftest.py for new work.
Install
pytest-helpers-namespace on PyPI
Before you install
Low friction install with a single runtime dependency (pytest). However, the package is abandoned—last release was 2021-12-29 and last commit 2022-10-10. No active maintenance means bugs or compatibility issues with newer pytest versions will not be addressed.
License in practice
Licensed under Apache Software License 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
Quickstart
pip install pytest-helpers-namespace
# In conftest.py:
import pytest
@pytest.helpers.register
def my_helper(value):
return value
# In test file:
def test_example():
assert pytest.helpers.my_helper(True) is True
Verify before relying
- Compatibility with pytest versions released after 2022-10-10 is unknown and untested.
- Whether nested helper namespaces (pytest.helpers.can.haz) work reliably with current pytest is unverified.
Package facts
| License | Apache Software License 2.0 permissive |
| Python support | Supports the current Python release >=3.5.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Abandoned 1,689 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 230,571 / month, #9,105 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: CythonProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pytest_helpers_namespace-2021.12.29-py3-none-any.whl
Tags
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 › “pytest helper functions namespace”
- pytest-helpers-namespaceProvides a pytest namespace for registering and accessing helper…
- pytest-filter-subpackageA pytest plugin that adds a `-P` option to run tests for specific…
- pytest-checkA pytest plugin that allows tests to continue running and collect…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
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.
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.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
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.
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.
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.
See also pytest-datafiles · pytest-logging · pytest-socket · pytest-xml · pytest-cython · pytest-find-dependencies · pytest-error-for-skips · apipkg · pytest-variables · pytest-astropy-header