mbdevpl/typed-astunparse
Python 3 AST unparser with type comments support.
Extends the *typed-ast* parser to reconstruct source code from ASTs while preserving PEP 484 type comments—information lost by the standard *ast* module and *astunparse*. Works as a bridge between *typed-ast*'s parsing capabilities and code generation, enabling roundtrip transformations that maintain type annotation metadata. Integrates directly with *typed-ast* and serves as a foundation for downstream projects like *horast* (which adds arbitrary comment preservation) and *static-typing*.
31 stars and 11,681 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
31
Forks
4
Language
Python
License
Apache-2.0
Category
Last pushed
Oct 24, 2019
Monthly downloads
11,681
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/mbdevpl/typed-astunparse"
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