astor 0.8.1
0
Read/rewrite/write Python ASTs
Contents
Read/rewrite/write Python ASTs
Stars: 780, Watchers: 780, Forks: 101, Open Issues: 41The berkerpeksag/astor
repo was created 11 years ago and the last code push was 1 months ago.
The project is popular with 780 github stars!
How to Install astor
You can install astor using pip
pip install astor
or add it to a project with poetry
poetry add astor
Package Details
- Author
- Patrick Maupin
- License
- BSD-3-Clause
- Homepage
- https://github.com/berkerpeksag/astor
- PyPi:
- https://pypi.org/project/astor/
- GitHub Repo:
- https://github.com/berkerpeksag/astor
Classifiers
- Software Development/Code Generators
- Software Development/Compilers
Related Packages
Errors
A list of common astor errors.
Code Examples
Here are some astor
code examples and snippets.
GitHub Issues
The astor package has 41 open issues on GitHub
- Example to insert python code through AST
- [astor/code_gen.py] Support empty
ast.AnnAssign
likefoo: int
- Retire
astor
, asast.unparse
exists, and migrate it into API-compatible shims ofast
for older versions of python - Added support for new ast nodes for pattern matching.