$npx skillfedfor your agent

pytest-filter-subpackage

Pytest plugin for filtering based on sub-packages

With conditionsPyPI UtilitiesReleased Mar 2024334.7K downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl
v0.2.0 · released 2024-03-04 · Python >=3.8 · 2 runtime deps: pytest, packaging

Yes, if you work with pytest projects that have nested sub-packages and want a simpler way to filter test runs. The plugin is lightweight, actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is minimal. It's most valuable in projects where you frequently test individual sub-packages.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install as a pure Python wheel with only pytest and packaging as runtime dependencies.
  • Actively maintained with recent commits and stable status.

License · maintenance · safety

BSD (permissive) — BSD permissive license allows commercial and private use with minimal restrictions; you must retain the license notice.

last release 2024-03-04 (893 days) · last repo commit 2026-08-02 · 5 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 334,728 downloads/mo, #7,485 on PyPI

Verify before relying

pip install pytest-filter-subpackage

# Then run pytest with the -P option:
pytest -P wcs,io.fits
  • Whether the plugin works correctly with pytest-doctestplus as mentioned in the description, or if that integration requires additional setup.
  • Whether the -P option supports glob patterns or only exact sub-package name matching.
Same gist for agents: .md · .json

What it is and what it does

pytest-filter-subpackage is a pytest plugin that simplifies running tests for specific sub-packages within a larger project. Instead of writing out glob patterns like `**/wcs **/io/fits`, you pass a comma-separated list of sub-package names to the `-P` option, and the plugin translates that into the appropriate test discovery paths. It depends on pytest and packaging.

The plugin is designed for projects with nested package structures where you want to test a particular sub-package and its documentation together. It integrates with pytest's discovery mechanism and is automatically registered when installed. The fact sheet indicates it supports Python 3.8 through 3.12 and is actively maintained.

Use it for

  • Run tests for a single sub-package in a large monorepo without writing complex glob patterns.
  • Test both code and narrative documentation for a specific sub-package when used with pytest-doctestplus.
  • Quickly validate changes to a particular namespace within a multi-level package structure.

Worth the install?

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

With conditions

Yes, if you work with pytest projects that have nested sub-packages and want a simpler way to filter test runs.

The plugin is lightweight, actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is minimal. It's most valuable in projects where you frequently test individual sub-packages.

Install

pytest-filter-subpackage on PyPI

Before you install

Low friction install as a pure Python wheel with only pytest and packaging as runtime dependencies. Actively maintained with recent commits and stable status.

License in practice

BSD permissive license allows commercial and private use with minimal restrictions; you must retain the license notice.

Quickstart

pip install pytest-filter-subpackage

# Then run pytest with the -P option:
pytest -P wcs,io.fits

Verify before relying

  • Whether the plugin works correctly with pytest-doctestplus as mentioned in the description, or if that integration requires additional setup.
  • Whether the -P option supports glob patterns or only exact sub-package name matching.

Package facts

LicenseBSD permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pytestpackaging
MaintenanceActively maintained 893 days since the last release
Last repo commit
First released
Downloads334,728 / month, #7,485 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl

Tags

Capabilities
pytest sub-package filteringpytest plugin selective testingpytest -P optionpytest namespace filteringpytest subpackage runner
Topics
pytest-plugintest-filtering
PyPI keywords
pytestpy.test

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 sub-package filtering”

  • pytest-filter-subpackageA pytest plugin that adds a `-P` option to run tests for specific…
  • pytest-regexA pytest plugin that selects tests to run using Python regular…
  • pytest-onlyA pytest plugin that runs only tests marked with @pytest.mark.only,…

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

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
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
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also pytest-astropy · pytest-ignore-test-results · pytest-doctestplus · pytest-only · pytest-snob · pytest-remotedata · pytest-arraydiff · pytest-astropy-header · pytest-testmon · pytest-pep8