{
 "kind": "tool",
 "slug": "astor",
 "path": "tools/astor/",
 "name": "astor",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Languages, types and runtimes",
   "tools/languages-types/"
  ]
 ],
 "lead": "Reads, rewrites and generates Python AST code.",
 "chips": [
  {
   "label": "Languages, types and runtimes",
   "path": "tools/languages-types/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install astor"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/berkerpeksag/astor"
  },
  {
   "label": "Website",
   "href": "https://github.com/berkerpeksag/astor"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "BSD",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/berkerpeksag/astor"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Feb 17, 2026",
   "note": "",
   "src": "https://github.com/berkerpeksag/astor"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2 projects",
   "status": "info",
   "sub": "#41 of 66 in its category",
   "note": "Dependency in 2 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What astor does",
   "parts": [
    {
     "t": "prose",
     "text": "Reads, rewrites and generates Python AST code."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "astor popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "47",
       "of": "/ 100",
       "l": "Gid Score, #2261 overall"
      },
      {
       "n": "1.9M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "866",
       "l": "GitHub stars"
      },
      {
       "n": "2",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How astor is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 92.3% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 89.0% of its projects",
       "v": "packaging",
       "path": "tools/packaging/"
      },
      {
       "l": "In 87.7% of its projects",
       "v": "attrs",
       "path": "tools/attrs/"
      },
      {
       "l": "In 87.1% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 85.8% of its projects",
       "v": "Click",
       "path": "tools/click-py/"
      },
      {
       "l": "In 85.8% of its projects",
       "v": "jsonschema",
       "path": "tools/jsonschema/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about astor",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/berkerpeksag"
       ]
      },
      {
       "title": "More in Languages, types and runtimes",
       "path": "tools/languages-types/",
       "items": [
        {
         "text": "TypeScript",
         "path": "tools/typescript/"
        },
        {
         "text": "tsx",
         "path": "tools/tsx/"
        },
        {
         "text": "ts-node",
         "path": "tools/ts-node/"
        },
        {
         "text": "jiti",
         "path": "tools/jiti/"
        },
        {
         "text": "vue-tsc",
         "path": "tools/vue-tsc/"
        },
        {
         "text": "Cloudflare Workers Types",
         "path": "tools/cloudflare-workers-types/"
        },
        {
         "text": "mypy",
         "path": "tools/mypy/"
        },
        {
         "text": "tsconfig-paths",
         "path": "tools/tsconfig-paths/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "astor",
       "me": true,
       "facts": [
        "BSD",
        "Gid 47",
        "1.9M/wk"
       ]
      },
      {
       "name": "astroid",
       "why": "Abstract syntax tree library for Python with semantic inference for code analysis.",
       "path": "tools/astroid/",
       "facts": [
        "LGPL-2.1-or-later",
        "Gid 50",
        "9.5M/wk"
       ]
      }
     ],
     "more": "Compare astor with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install astor"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for astor yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi astor"
  ],
  [
   "Category",
   "Languages, types and runtimes"
  ],
  [
   "License",
   "BSD"
  ],
  [
   "Gid Score",
   "46.6"
  ],
  [
   "Rank in category",
   "#41 of 66"
  ],
  [
   "GitHub",
   "berkerpeksag/astor"
  ],
  [
   "Last change",
   "Feb 17, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/berkerpeksag.png"
}