# astor — card for AI agents

Reads, rewrites and generates Python AST code.

Category: Languages, types and runtimes · PyPI package `astor` · latest version 0.8.1 (checked 2026-11-01)
Install: `pip install astor`
License: BSD (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 46.6 (#2261 of all tools, 39 of 66 in its category)
- Used in 2 public projects set up for AI coding agents (0.0%)
- Downloads last week: 1,912,094 (as of 2026-11-17), -12.8% over 4 weeks
- GitHub stars: 866 (as of 2026-11-17)
- Last push: 2026-02-17

## Often used with
NumPy 92.3%, packaging 89.0%, attrs 87.7%, Requests 87.1%, Click 85.8%, jsonschema 85.8%

## Checked alternatives (same job)
- astroid: https://agentgid.com/tools/astroid/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/astor/
- Homepage: https://github.com/berkerpeksag/astor
- Repository: https://github.com/berkerpeksag/astor

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
