mbdevpl/typed-astunparse

Python 3 AST unparser with type comments support.

52
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 16 / 25
Maturity 25 / 25
Community 11 / 25

How are scores calculated?

Stars

31

Forks

4

Language

Python

License

Apache-2.0

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.