riot
A simple Python test runner runner.
What it is and what it does
riot is a virtual environment constructor and command runner that automates the creation and management of isolated Python environments. It lets you define multiple dependency configurations and run tests or commands across all of them in a reproducible way, without manually creating and activating separate venvs. The package depends on click for CLI handling, virtualenv for environment creation, rich for terminal output formatting, pexpect for subprocess interaction, packaging for version handling, and setuptools for installation support.
It's designed for scenarios where you need to test code against different versions of dependencies or Python itself—a common pattern in library development and CI/CD. Rather than writing shell scripts to loop through environment setup, you define your matrix once and riot handles the isolation and execution.
Use it for:
- Test a library against multiple Python versions (3.8 through 3.14) in isolated environments.
- Run integration tests with different versions of key dependencies to catch compatibility issues.
- Automate reproducible test matrices in CI/CD pipelines without manual venv management.
- Verify that a package works across a grid of Python and dependency combinations before release.
- Execute arbitrary commands (linting, building, benchmarking) in isolated, controlled environments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
riot constructs isolated Python virtual environments and runs commands within them, enabling reproducible testing across multiple dependency configurations.
Yes, if you need to test across multiple dependency or Python version configurations. The package is actively maintained, has low install friction, carries a permissive license, and eliminates boilerplate around virtual environment management. It's most valuable in library development and CI/CD contexts; less relevant for single-environment applications.
Install
riot on PyPI
pip
pip install riotuv
uv add riotpoetry
poetry add riotInstalling riot
Before you install
Low friction installation with a pure-wheel distribution. Active maintenance (last commit 2026-07-09) and recent release cycle (39 days since 0.22.1). Depends on well-established packages: click, virtualenv, rich, pexpect, packaging, and setuptools.
License in practice
Licensed under Apache 2, a permissive license allowing commercial and private use with minimal restrictions—no compatibility concerns for most projects.
Quickstart
pip install riot
from riot import __version__
# Typically invoked via CLI: riot run
# Creates and manages virtual environments per configuration
Requires Python 3.8 or later; pexpect dependency may have platform-specific behavior on Windows.
Verify before relying
- Whether riot is designed for CI/CD pipelines or local development workflows (or both).
- How riot's configuration file format works and what syntax it expects.
- Whether riot can parallelize test runs across multiple environments.
- Integration patterns with existing test frameworks (pytest, unittest, etc.).
Package facts
| License | Apache 2 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — click, virtualenv, rich, pexpect, packaging, setuptools |
| Maintenance | actively maintained — 39 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 148,100/month — #11,044 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: riot-0.22.1-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
robotframework-pabotPabot splits Robot Framework test execution…
permissive · top 5,000 on PyPI
tox-ghtox-gh automatically selects and runs the…
permissive · top 15,000 on PyPI
ansible-dev-environmentCreates isolated virtual environments for…
copyleft · top 15,000 on PyPI
pytest-runnerEnables running pytest tests through setup.py…
permissive · top 1,000 on PyPI
toxtox automates testing across multiple Python…
permissive · top 1,000 on PyPI
noxNox automates testing across multiple Python…
permissive · top 5,000 on PyPI
cdk-gitlab-runnerDefines AWS infrastructure for GitLab Runner…
permissive · top 15,000 on PyPI
tox-uvtox-uv replaces virtualenv and pip with uv in…
permissive · top 5,000 on PyPI
pytest-fakerProvides pytest fixtures that integrate the…
permissive · top 15,000 on PyPI
ansible-runnerAnsible Runner provides a Python library and…
permissive · top 5,000 on PyPI