Contents

astor 0.8.1

0

Read/rewrite/write Python ASTs

Read/rewrite/write Python ASTs

Stars: 810, Watchers: 810, Forks: 102, Open Issues: 43

The berkerpeksag/astor repo was created 12 years ago and the last code push was 6 months ago.
The project is popular with 810 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
No  astor  pypi packages just yet.

Errors

A list of common astor errors.

Code Examples

Here are some astor code examples and snippets.

GitHub Issues

The astor package has 43 open issues on GitHub

  • Example to insert python code through AST
  • [astor/code_gen.py] Support empty ast.AnnAssign like foo: int
  • Retire astor, as ast.unparse exists, and migrate it into API-compatible shims of ast for older versions of python
  • Added support for new ast nodes for pattern matching.

See more issues on GitHub