pytest-monitor
Pytest plugin for analyzing resource usage.
Decision gist · record as of 2026-08-14
Yes, if you need historical test performance tracking and your project is on a stable pytest version. The plugin is low-friction to install and requires no code changes—it activates automatically. However, the dormant maintenance status (last release June 2023) means compatibility with very recent pytest or Python versions is unverified; test this in a staging environment first if you're on cutting-edge tooling. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.5+.
- The plugin does not work with unittest—only pytest test suites are supported.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in commercial or proprietary projects.
last release 2023-06-25 (1146 days) · last repo commit 2024-07-15 · 180 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 113,711 downloads/mo, #12,333 on PyPI
Alternatives
Verify before relying
pip install pytest-monitor
pytest your_tests/
# After the run, a .pymon SQLite database will be created in the current directory
# with resource consumption data for each test.- Whether dormant maintenance status affects compatibility with recent pytest versions or Python 3.9+
- Performance overhead of continuous monitoring on large test suites
- Whether the SQLite backend scales adequately for projects with thousands of tests
What it is and what it does
pytest-monitor is a pytest plugin that runs automatically once installed and measures resource consumption for every test function. It collects memory usage (via memory-profiler), CPU usage (via psutil), and wall-clock execution time, storing all measurements in a local .pymon SQLite database alongside environment metadata (CPU count, RAM, Python version, system info, and SCM commit hash). This creates a historical record of test performance across runs and environments.
The plugin is designed for developers who need to track how test resource usage changes over time, compare behavior across different machines or configurations, or identify performance regressions. It requires Python 3.5+ and works only with pytest (not unittest). Results are stored locally by default, though optional backend services (monitor-server-api or pytest-monitor-backend) can be used for centralized storage and querying.
Use it for
- Track memory and CPU trends in test suites across multiple commits to detect performance regressions early.
- Compare test resource usage between development, CI, and production environments to identify platform-specific issues.
- Identify memory leaks or CPU hotspots in tests by analyzing historical consumption patterns in the SQLite database.
- Establish performance baselines for test suites and alert when resource usage exceeds thresholds.
- Debug flaky tests by correlating resource spikes with test failures across different runs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need historical test performance tracking and your project is on a stable pytest version.
The plugin is low-friction to install and requires no code changes—it activates automatically. However, the dormant maintenance status (last release June 2023) means compatibility with very recent pytest or Python versions is unverified; test this in a staging environment first if you're on cutting-edge tooling. No known security vulnerabilities.
Install
pytest-monitor on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is dormant (last release 2023-06-25, 1146 days ago), though the repository remains active and the codebase is marked Production/Stable. Depends on pytest, psutil, and memory-profiler—all widely used, stable packages.
Requires Python 3.5+. The plugin does not work with unittest—only pytest test suites are supported.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in commercial or proprietary projects.
Quickstart
pip install pytest-monitor
pytest your_tests/
# After the run, a .pymon SQLite database will be created in the current directory
# with resource consumption data for each test.
Verify before relying
- Whether dormant maintenance status affects compatibility with recent pytest versions or Python 3.9+
- Performance overhead of continuous monitoring on large test suites
- Whether the SQLite backend scales adequately for projects with thousands of tests
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagespytestrequestspsutilmemory-profilerwheel |
| Maintenance | Dormant 1,146 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 113,711 / month, #12,333 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/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing |
Evidence: pytest_monitor-1.6.6-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 resource monitoring”
- pytest-monitorA pytest plugin that automatically measures and logs resource…
- pytest-threadleakA pytest plugin that detects when tests leak threads—threads that…
- pytest-operatorA pytest plugin that provides fixtures and helpers for writing…
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-logging · memory-profiler · pytest-regressions · pytest-threadleak · pytest-repeat · pytest-snapshot · pytest-replay · pytest-flakefinder · pytest-xml · pytest-find-dependencies