# pysource-minimize

> minimize python source code to find bugs more easily 

- **URL**: https://www.freshcrate.ai/projects/pysource-minimize
- **Author**: 15r10nk
- **Category**: Uncategorized
- **Latest version**: `v0.10.1` (2025-08-30)
- **License**: MIT
- **Source**: https://github.com/15r10nk/pysource-minimize
- **Language**: Python
- **GitHub**: 49 stars, 1 forks
- **Registry**: github
- **Tags**: `code-generation`, `codegenerator`, `python`, `testing`

## Description

minimize python source code to find bugs more easily

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v0.10.1` | 2025-08-30 | Low | ### Fix  - set Interpolation.str to the unparsed value |
| `v0.10.0` | 2025-08-29 | Low | ### Feat  - **3.14**: added support for template-strings  ### Fix  - try to minimize Subscript to Name in Store context |
| `v0.9.0` | 2025-07-05 | Low | ### Feat  - implemented minimize_all() - better minimization for ast.AnnAssign - better minimization for ast.AugAssign - try to replace every ast.expr with ast.Constant(0) - replace names with unique_name_N if possible to show where a common name matters  ### Refactor  - fixed typos |
| `v0.8.0` | 2025-04-16 | Low | ## v0.8.0 (2025-04-16)  ### Feat  - new cli with visual feedback  https://github.com/user-attachments/assets/cfcd9a68-7e8c-4aae-ade2-c7325106916a   ### Fix  - minimize MatchValue.value - minimize Raise.exc - minimize Call.func - also minimize left side of an assertion - improved comprehesion minimization - NamedConstant has been removed in 3.14  ### Refactor  - improved pattern minimization    **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.7.0 |
| `v0.7.0` | 2024-10-09 | Low | ## What's Changed * cpython 3.13 support by @15r10nk in https://github.com/15r10nk/pysource-minimize/pull/19 * fix: add missing license file by @15r10nk in https://github.com/15r10nk/pysource-minimize/pull/20   **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.6.3...v0.7.0 |
| `v0.6.3` | 2024-04-23 | Low | ## What's Changed - Improve error reporting when source cannot be minimized (#16) @AlexWaygood  - Complete type hints for public API (#15) @AlexWaygood   **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.6.2...v0.6.3 |
| `v0.6.2` | 2024-03-25 | Low | ## What's Changed fixed some corner cases with yield, MatchClass, default args and slices   **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.6.1...v0.6.2 |
| `v0.6.1` | 2023-11-29 | Low | ## What's Changed * Some fixes by @15r10nk in https://github.com/15r10nk/pysource-minimize/pull/11   **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.6.0...v0.6.1 |
| `v0.6.0` | 2023-11-12 | Low | ## What's Changed  ### Feat  - removed python 3.7 support - minimize strings, bytes, int, float, boolean values - minimize nonlocal and global names - minimize type comments  ### Fix  - fix crash when minimizing raise statements - remove the upper dependency bounds in pyproject.toml - minimize kw_defaults correctly - minimize function defaults correctly - added py.typed  **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.5.0...v0.6.0 |
| `v0.5.0` | 2023-10-20 | Low | ## What's Changed  * support for python 3.12 * some bug fixes  **Full Changelog**: https://github.com/15r10nk/pysource-minimize/compare/v0.4.0...v0.5.0 |

## Citation

- HTML: https://www.freshcrate.ai/projects/pysource-minimize
- Markdown: https://www.freshcrate.ai/projects/pysource-minimize.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/pysource-minimize/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
