mutating/transfunctions

Say NO to Python fragmentation on sync and async

64
/ 100
Established

Eliminates sync/async code duplication by generating specialized function variants from AST-level templates using context managers (`sync_context`, `async_context`, `generator_context`) to mark variant-specific code paths. Supports standalone function generation via methods like `get_async_function()` and composite "superfunctions" that adapt their behavior based on how they're called, while preserving closures and typing information across all variants.

198 stars and 4,499 monthly downloads. Available on PyPI.

Maintenance 13 / 25
Adoption 18 / 25
Maturity 25 / 25
Community 8 / 25

How are scores calculated?

Stars

198

Forks

6

Language

Python

License

MIT

Last pushed

Mar 20, 2026

Monthly downloads

4,499

Commits (30d)

0

Dependencies

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/mutating/transfunctions"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.