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

LibCST

Concrete syntax tree parser for Python code enabling precise automated code transformations.

Languages, types and runtimesPYPI

GitHub

1. License

License from PyPI classifier.

github.com/Instagram/LibCST

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

What LibCST does

Concrete syntax tree parser for Python code enabling precise automated code transformations.

LibCST popularity

54 / 100
Gid Score, #1456 overall
8.8M
downloads a week, pypi
1,974
GitHub stars
1
agent projects use it
LibCST: downloads per weekPyPI, libcst 8,907,617
LibCST: GitHub starsInstagram/LibCST 1,974

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

How LibCST is used

  • 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%).

Often used with

In 95.5% of its projects
In 95.5% of its projects
In 95.5% of its projects
In 93.9% of its projects
In 93.9% of its projects
In 93.9% of its projects
In 92.4% of its projects
In 90.9% of its projects

More about LibCST

More in Languages, types and runtimes

Alternatives

LibCST This page

MITGid 548.8M/wk

parso

Python parser library for syntax analysis and AST generation.

MITGid 6125.9M/wk

astor

Reads, rewrites and generates Python AST code.

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 LibCST with another tool

Get started

Install it.

pip install libcst

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