Skip to content
Agents tracked: 492 Releases (7d): 545 Agent status: 1 with issuesSince last limit reset: Claude 9d · Codex 7d For AI agents: Markdown Updated Nov 20, 2026

astor

Reads, rewrites and generates Python AST code.

Languages, types and runtimesPYPI

GitHubWebsite

1. License

License from PyPI classifier.

github.com/berkerpeksag/astor

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What astor does

Reads, rewrites and generates Python AST code.

astor popularity

47 / 100
Gid Score, #2261 overall
1.9M
downloads a week, pypi
866
GitHub stars
2
agent projects use it
astor: downloads per weekPyPI, astor 1,895,141
astor: GitHub starsberkerpeksag/astor 866

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How astor is used

  • astor is a dependency in 2 of the 6,254 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,063, Ethereum and EVM 1,777, 3D and games 3,120, agent frameworks and SDKs 13,629); counting those, it appears in 155 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is astroid (2 projects).
  • Projects that use it most often also use NumPy (92.3%), packaging (89.0%), attrs (87.7%).

Often used with

In 92.3% of its projects
In 89.0% of its projects
In 87.7% of its projects
In 87.1% of its projects
In 85.8% of its projects
In 85.8% of its projects

More about astor

Funding
  • GitHub Sponsors: https://github.com/berkerpeksag

See all

More in Languages, types and runtimes

Alternatives

astor This page

BSDGid 471.9M/wk

astroid

Abstract syntax tree library for Python with semantic inference for code analysis.

LGPL-2.1-or-laterGid 509.5M/wk

Compare astor with another tool

Get started

Install it.

pip install astor

No step-by-step start for astor yet: we have not written its hand-checked card.