$npx skillfedfor your agent

astroid

An abstract syntax tree for Python with inference support.

Worth itPyPI Python ModulesReleased Aug 202655.4M downloads / moLGPL-2.1-or-laterPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — astroid-4.3.0-py3-none-any.whl
v4.3.0 · released 2026-08-07 · Python >=3.10.0 · 1 runtime deps: typing-extensions

Yes. Astroid is a mature, actively maintained library with no known vulnerabilities, low install friction, and broad Python version support. The copyleft license requires review if you're building proprietary tools, but it's the standard foundation for Python static analysis. Install it if you're building or extending code-quality tooling.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction installation with a single lightweight runtime dependency (typing-extensions).
  • Active maintenance with a release within the past week and regular updates across modern Python versions.

License · maintenance · safety

LGPL-2.1-or-later (copyleft) — Licensed under LGPL-2.1-or-later (copyleft). Derivative works and modifications must be distributed under compatible terms; proprietary applications using astroid as a library should review copyleft obligations.

last release 2026-08-07 (7 days) · last repo commit 2026-08-12 · 581 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 55,355,505 downloads/mo, #537 on PyPI

Verify before relying

pip install astroid

import astroid
module = astroid.parse('x = 1')
for node in module.nodes_of_class(astroid.Assign):
    print(node)
  • Whether static inference covers all Python language constructs or has known limitations in specific scenarios.
  • Performance characteristics when analyzing large codebases or deeply nested AST structures.
Same gist for agents: .md · .json

What it is and what it does

Astroid extends Python's built-in AST module by walking the syntax tree and building enhanced node classes with additional methods, attributes, and capabilities for static analysis. It provides a common intermediate representation used by pylint and other code-quality tools to understand and reason about Python source code.

The library rebuilds the standard AST with support for static type inference and local name scopes, allowing tools to track variable definitions, resolve names, and perform semantic analysis beyond simple syntactic parsing. It can also build partial trees by inspecting live Python objects, making it useful for both static analysis of source files and runtime introspection.

Use it for

  • Power static analysis and linting tools that need to understand code semantics beyond raw syntax.
  • Perform type inference and name resolution on Python source code for code-quality checks.
  • Build code analysis plugins that need to reason about variable scope and definition chains.
  • Analyze Python codebases programmatically to extract semantic information for documentation or refactoring tools.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Astroid is a mature, actively maintained library with no known vulnerabilities, low install friction, and broad Python version support. The copyleft license requires review if you're building proprietary tools, but it's the standard foundation for Python static analysis. Install it if you're building or extending code-quality tooling.

Install

astroid on PyPI

Before you install

Low friction installation with a single lightweight runtime dependency (typing-extensions). Active maintenance with a release within the past week and regular updates across modern Python versions.

Requires Python 3.10 or later.

License in practice

Licensed under LGPL-2.1-or-later (copyleft). Derivative works and modifications must be distributed under compatible terms; proprietary applications using astroid as a library should review copyleft obligations.

Quickstart

pip install astroid

import astroid
module = astroid.parse('x = 1')
for node in module.nodes_of_class(astroid.Assign):
    print(node)

Verify before relying

  • Whether static inference covers all Python language constructs or has known limitations in specific scenarios.
  • Performance characteristics when analyzing large codebases or deeply nested AST structures.

Package facts

LicenseLGPL-2.1-or-later copyleft
Python supportSupports the current Python release >=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads55,355,505 / month, #537 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 6 - MatureEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: Testing

Evidence: astroid-4.3.0-py3-none-any.whl

Tags

Capabilities
python ast parsing and analysisstatic code inferenceabstract syntax tree builderpylint ast librarypython code introspection
Topics
ast-analysisstatic-inferencecode-quality
PyPI keywords
abstract syntax treepythonstatic code analysis

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “static code inference”

  • astroidAstroid builds an extended abstract syntax tree (AST) representation…
  • pytypePytype is a static type checker that infers types in Python code…
  • sqlalchemy-stubsProvides type stubs and a mypy plugin to enable static type checking…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also ast-decompiler · asttokens · astatine · jaraco.classes · openqasm3 · pylint · ast-comments · ast-grep-cli · gast · astunparse