{
 "kind": "tool",
 "slug": "libcst",
 "path": "tools/libcst/",
 "name": "LibCST",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Languages, types and runtimes",
   "tools/languages-types/"
  ]
 ],
 "lead": "Concrete syntax tree parser for Python code enabling precise automated code transformations.",
 "chips": [
  {
   "label": "Languages, types and runtimes",
   "path": "tools/languages-types/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install libcst"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/Instagram/LibCST"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/Instagram/LibCST"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Aug 11, 2026",
   "note": "Latest GitHub release Jul 29, 2026. ",
   "src": "https://github.com/Instagram/LibCST"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#50 of 66 in its category",
   "note": "Dependency in 1 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 LibCST does",
   "parts": [
    {
     "t": "prose",
     "text": "Concrete syntax tree parser for Python code enabling precise automated code transformations."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "LibCST popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "54",
       "of": "/ 100",
       "l": "Gid Score, #1456 overall"
      },
      {
       "n": "8.8M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "1,974",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "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 LibCST is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "LibCST is a dependency in 1 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 66 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is parso (6 projects).",
      "Projects that use it most often also use aiohttp (95.5%), NumPy (95.5%), Pydantic (95.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 95.5% of its projects",
       "v": "aiohttp",
       "path": "tools/aiohttp/"
      },
      {
       "l": "In 95.5% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 95.5% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 93.9% of its projects",
       "v": "Anthropic Python SDK",
       "path": "tools/anthropic/"
      },
      {
       "l": "In 93.9% of its projects",
       "v": "Beautiful Soup",
       "path": "tools/beautifulsoup4/"
      },
      {
       "l": "In 93.9% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 92.4% of its projects",
       "v": "pandas",
       "path": "tools/pandas/"
      },
      {
       "l": "In 90.9% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about LibCST",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "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": "LibCST",
       "me": true,
       "facts": [
        "MIT",
        "Gid 54",
        "8.8M/wk"
       ]
      },
      {
       "name": "parso",
       "why": "Python parser library for syntax analysis and AST generation.",
       "path": "tools/parso/",
       "facts": [
        "MIT",
        "Gid 61",
        "25.9M/wk"
       ]
      },
      {
       "name": "astor",
       "why": "Reads, rewrites and generates Python AST code.",
       "path": "tools/astor/",
       "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 LibCST with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install libcst"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for LibCST yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi libcst"
  ],
  [
   "Category",
   "Languages, types and runtimes"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "54.0"
  ],
  [
   "Rank in category",
   "#50 of 66"
  ],
  [
   "GitHub",
   "Instagram/LibCST"
  ],
  [
   "Last change",
   "Aug 11, 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/instagram.png"
}