mbdevpl/typed-astunparse
Python 3 AST unparser with type comments support.
This tool helps Python developers who work with Abstract Syntax Trees (ASTs) by converting an AST back into human-readable Python code. Specifically, it takes an AST that includes type comments (as defined in PEP 484) and outputs the original Python source code, preserving those type comments. This is essential for developers building tools that analyze or transform Python code while needing to retain type information.
No commits in the last 6 months. Available on PyPI.
Use this if you are a Python developer creating tools that process Python source code and need to convert an Abstract Syntax Tree (AST) back into code while preserving type comments.
Not ideal if you are not a Python developer or if your workflow does not involve manipulating Python Abstract Syntax Trees.
Stars
31
Forks
4
Language
Python
License
Apache-2.0
Category
Last pushed
Oct 24, 2019
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.
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