15r10nk/pysource-minimize
minimize python source code to find bugs more easily
Implements delta-debugging to iteratively remove statements, expressions, and literals while preserving a user-defined property (via CLI `--track` flag or custom checker function). Supports both single files and multi-file minimization through a Python API, executing arbitrary test commands to verify whether each reduction maintains the target bug or behavior. The tool generates syntactically valid code during reduction and handles edge cases where overly permissive checks may find unintended solutions.
49 stars and 8,507 monthly downloads. Available on PyPI.
Stars
49
Forks
1
Language
Python
License
MIT
Category
Last pushed
Mar 16, 2026
Monthly downloads
8,507
Commits (30d)
0
Dependencies
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/15r10nk/pysource-minimize"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
inducer/cgen
C/C++ source generation from an AST
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
pyecore/pyecore
A Python(nic) Implementation of EMF/Ecore (Eclipse Modeling Framework)
mutating/transfunctions
Say NO to Python fragmentation on sync and async
cogu/cfile
A python C code generator