codemod-tox
Utilities for editing tox.ini
Decision gist · record as of 2026-08-14
Yes, if you need to parse or modify tox.ini files programmatically. The package is actively maintained, has no dependencies, installs easily, carries a permissive MIT license, and requires only Python 3.10+. It is well-suited for build tools, CI scripts, and configuration management. Not necessary if you only read tox.ini manually or use tox itself without programmatic modification.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with no runtime dependencies.
- Active maintenance with recent release; last commit on 2026-04-16.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; attribution required.
last release 2026-04-16 (120 days) · last repo commit 2026-04-16
0 known vulnerabilities (OSV.dev, 2026-08-14) · 182,940 downloads/mo, #10,080 on PyPI
Alternatives
Verify before relying
from codemod_tox import ToxEnv, ToxEnvlist
# Parse and expand environment definitions
env = ToxEnv.parse("py37") | "py38"
print(list(env)) # ["py37", "py38"]
# Parse and transform environment lists
envlist = ToxEnvlist.parse("py37, style")
result = envlist.transform_matching(
lambda x: x.startswith("py3"),
lambda y: y | "py38"
)- Whether the package handles all tox.ini syntax variations or only basic cases as described
- Performance characteristics when processing large or complex tox configurations
- API stability guarantees beyond the meanver/semver promise mentioned in the description
What it is and what it does
codemod-tox is a utility library for programmatically reading and modifying tox.ini configuration files. It provides parsers for tox environment lists, individual environment definitions, and conditional dependency specifications, allowing you to construct, expand, and transform these configurations as Python objects rather than manipulating raw strings.
The library is designed for tools that need to analyze or rewrite tox configurations—such as linters, migration scripts, or test infrastructure generators. It has no runtime dependencies and installs with low friction. It requires Python 3.10 or later and follows semantic versioning with a commitment to rename on major version changes.
Use it for
- Automatically expand or filter tox environment matrices in CI/CD pipeline configuration scripts
- Build linting or validation tools that need to parse and understand tox.ini structure
- Generate or modify tox configurations programmatically in test infrastructure generators
- Migrate or refactor tox configurations across multiple projects using codemod-style transformations
- Analyze tox environment dependencies to detect conflicts or redundancies
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to parse or modify tox.ini files programmatically.
The package is actively maintained, has no dependencies, installs easily, carries a permissive MIT license, and requires only Python 3.10+. It is well-suited for build tools, CI scripts, and configuration management. Not necessary if you only read tox.ini manually or use tox itself without programmatic modification.
Install
codemod-tox on PyPI
Before you install
Low friction install with no runtime dependencies. Active maintenance with recent release; last commit on 2026-04-16. Requires Python 3.10+.
Requires Python 3.10 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions; attribution required.
Quickstart
from codemod_tox import ToxEnv, ToxEnvlist
# Parse and expand environment definitions
env = ToxEnv.parse("py37") | "py38"
print(list(env)) # ["py37", "py38"]
# Parse and transform environment lists
envlist = ToxEnvlist.parse("py37, style")
result = envlist.transform_matching(
lambda x: x.startswith("py3"),
lambda y: y | "py38"
)
Verify before relying
- Whether the package handles all tox.ini syntax variations or only basic cases as described
- Performance characteristics when processing large or complex tox configurations
- API stability guarantees beyond the meanver/semver promise mentioned in the description
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 120 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 182,940 / month, #10,080 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: codemod_tox-0.5.4-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 › “tox.ini parsing”
- codemod-toxParses and modifies tox.ini configuration strings, including…
- dparseParses Python dependency files (requirements.txt, conda.yml, tox.ini,…
- dparse2Parses Python dependency manifests (requirements.txt, Pipfile,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also codemod-yaml · tox-gh-actions · conditional · parameter-expansion-patched · dparse2 · tox-gh · INITools · bracex · pyconfigurator · oslo.config