15r10nk/pysource-minimize
minimize python source code to find bugs more easily
When you're developing tools that analyze Python code, like linters or formatters, and encounter a bug, this tool helps you isolate the problem. You feed it your Python source code files and define what output or behavior indicates the bug. It then systematically strips away unrelated code, giving you the smallest possible code snippet that still triggers the issue. This is for software developers building or maintaining Python code analysis tools.
Available on PyPI.
Use this if you need to quickly narrow down the exact lines of Python code causing an error or specific behavior within a larger codebase, especially when developing code analysis tools.
Not ideal if you are looking for a general-purpose debugger for application-level Python code or a tool to refactor working code.
Stars
49
Forks
1
Language
Python
License
MIT
Category
Last pushed
Mar 16, 2026
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.
Higher-rated alternatives
inducer/cgen
C/C++ source generation from an AST
vil02/puzzle_generator
Generates python code representing a puzzle
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
numen31337/copy_with_extension
Auto-generate `copyWith` methods for your Dart classes.
finsberg/gotranx
Next generation ODE translator