$npx skillfedfor your agent

pytest-xdist

pytest xdist plugin for distributed testing, most importantly across multiple CPUs

Worth itPyPI UtilitiesReleased Jul 2025177.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_xdist-3.8.0-py3-none-any.whl
v3.8.0 · released 2025-07-01 · Python >=3.9 · 2 runtime deps: execnet, pytest

Yes. pytest-xdist is a mature, actively maintained plugin with no known vulnerabilities, low install friction, and permissive licensing. It directly addresses a common pain point—slow test suites—with minimal configuration overhead. Install it if your test suite takes long enough that parallelization would save meaningful time.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; pytest must be installed (a runtime dependency).
  • Low install friction with only two runtime dependencies (execnet and pytest).
  • Active maintenance with a recent release in July 2025, 1895 repository stars, and last commit on 2026-08-12 signal a well-maintained project.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—only requiring attribution and inclusion of the license text.

last release 2025-07-01 (409 days) · last repo commit 2026-08-12 · 1,895 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 177,097,162 downloads/mo, #236 on PyPI

Verify before relying

pip install pytest-xdist

pytest -n auto
  • Whether test isolation or ordering constraints apply when distributing tests across workers.
  • Support for test frameworks or fixtures beyond standard pytest.
Same gist for agents: .md · .json

What it is and what it does

pytest-xdist is a pytest plugin that adds distributed test execution modes, most commonly parallelizing tests across multiple CPU cores on a single machine. It integrates directly into pytest's command-line interface, allowing developers to invoke parallel execution with a single flag like `-n auto`, which automatically spawns worker processes matching the number of available CPUs and distributes tests randomly among them.

The plugin depends on execnet for inter-process communication and pytest itself as its host framework. It supports Python 3.9 through 3.13 and is actively maintained by the pytest development team. The MIT license and low dependency footprint make it straightforward to add to existing test suites without significant compatibility concerns.

Use it for

  • Speed up large test suites by running tests in parallel across all available CPU cores on a development machine.
  • Reduce continuous integration pipeline duration by distributing tests across multiple worker processes.
  • Distribute tests across multiple machines in a network for large-scale test execution (via execnet).
  • Quickly validate changes locally before pushing by running the full test suite in a fraction of the time.
  • Balance test load dynamically across workers to avoid bottlenecks from slow or fast test groups.

Worth the install?

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

Worth it

Yes.

pytest-xdist is a mature, actively maintained plugin with no known vulnerabilities, low install friction, and permissive licensing. It directly addresses a common pain point—slow test suites—with minimal configuration overhead. Install it if your test suite takes long enough that parallelization would save meaningful time.

Install

pytest-xdist on PyPI

Before you install

Low install friction with only two runtime dependencies (execnet and pytest). Active maintenance with a recent release in July 2025, 1895 repository stars, and last commit on 2026-08-12 signal a well-maintained project.

Requires Python 3.9 or later; pytest must be installed (a runtime dependency).

License in practice

MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—only requiring attribution and inclusion of the license text.

Quickstart

pip install pytest-xdist

pytest -n auto

Verify before relying

  • Whether test isolation or ordering constraints apply when distributing tests across workers.
  • Support for test frameworks or fixtures beyond standard pytest.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
execnetpytest
MaintenanceActively maintained 409 days since the last release
Last repo commit
First released
Downloads177,097,162 / month, #236 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 :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_xdist-3.8.0-py3-none-any.whl

Tags

Capabilities
parallel test executiondistributed testing pytestspeed up pytestmulti-core test runnerpytest parallel workerstest parallelizationpytest cpu scaling
Topics
test-accelerationpytest-plugindistributed-computing

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 › “speed up pytest”

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-parallel · pytest-shard · concurrencytest · pytest-forked · pytest-circleci-parallelized · para · pytest-extra-durations · pytest-run-parallel · pytest-split · pytest-test-groups