$npx skillfedfor your agent

pytest-xprocess

A pytest plugin for managing processes across test runs.

With conditionsPyPI LibrariesReleased May 2024307.6K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_xprocess-1.0.2-py3-none-any.whl
v1.0.2 · released 2024-05-19 · Python >=3.8 · 2 runtime deps: pytest, psutil

Yes, if your test suite relies on external processes. The plugin is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It is well-suited for integration tests that need to manage services across multiple test runs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install with only pytest and psutil as runtime dependencies.
  • The package is actively maintained with a recent commit history and has been stable since its early releases.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing use in commercial and open-source projects with minimal restrictions.

last release 2024-05-19 (817 days) · last repo commit 2026-07-13 · 108 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 307,612 downloads/mo, #7,774 on PyPI

Verify before relying

pip install pytest-xprocess

import pytest
from pytest_xprocess import XProcess

def test_with_process(xprocess):
    # xprocess manages the external process lifecycle
    xprocess.ensure("my_service", lambda: ...)
  • Whether the plugin supports process cleanup and signal handling across different operating systems.
  • Performance characteristics when managing many concurrent external processes.
Same gist for agents: .md · .json

What it is and what it does

pytest-xprocess is a pytest plugin that handles the lifecycle of external processes during test execution. Rather than starting and stopping a service (like a database, cache, or API server) for each test, it manages long-lived processes that can be reused across multiple tests, reducing test overhead and improving speed.

The plugin works by maintaining process state across test runs and providing fixtures to interact with these processes. It depends on pytest for the test framework integration and psutil for cross-platform process management. It supports Python 3.8 through 3.11 and is classified as Beta stability, indicating it is mature but may still have minor API changes.

Use it for

  • Start a database server once and reuse it across all tests instead of spinning up a new instance per test.
  • Manage a mock API or HTTP service that multiple test cases need to communicate with.
  • Control background worker processes or message queues during integration testing.
  • Reduce test suite runtime by avoiding repeated startup costs of external services.

Worth the install?

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

With conditions

Yes, if your test suite relies on external processes.

The plugin is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It is well-suited for integration tests that need to manage services across multiple test runs.

Install

pytest-xprocess on PyPI

Before you install

Low friction install with only pytest and psutil as runtime dependencies. The package is actively maintained with a recent commit history and has been stable since its early releases.

License in practice

MIT license is permissive, allowing use in commercial and open-source projects with minimal restrictions.

Quickstart

pip install pytest-xprocess

import pytest
from pytest_xprocess import XProcess

def test_with_process(xprocess):
    # xprocess manages the external process lifecycle
    xprocess.ensure("my_service", lambda: ...)

Verify before relying

  • Whether the plugin supports process cleanup and signal handling across different operating systems.
  • Performance characteristics when managing many concurrent external processes.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pytestpsutil
MaintenanceActively maintained 817 days since the last release
Last repo commit
First released
Downloads307,612 / month, #7,774 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: LibrariesTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_xprocess-1.0.2-py3-none-any.whl

Tags

Capabilities
pytest external process managementmanage server processes in testspytest long-running servicesreuse processes across test runspytest process fixturescontrol external processes pytest
Topics
pytest-pluginprocess-managementintegration-testing

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 external process management”

  • pytest-xprocesspytest-xprocess manages external processes (like servers or services)…
  • pytest-postgresqlA pytest plugin that provides fixtures to manage PostgreSQL database…
  • pytest-mysqlA pytest plugin that provides MySQL and MariaDB fixtures for…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / 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
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / 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
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

See also pytest-forked · pytest-selenium · pytest-postgresql · pytest-django · pytest-datafiles · pytest-redis · pytest-vcr · testresources · circus