--- id: astroid version: "4.3.0" license: LGPL-2.1-or-later license_treatment: copyleft maintenance: active --- # astroid — An abstract syntax tree for Python with inference support. License: copyleft · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install astroid uv add astroid poetry add astroid ## Description Astroid ======= .. image:: https://codecov.io/gh/pylint-dev/astroid/branch/main/graph/badge.svg :target: https://codecov.io/gh/pylint-dev/astroid :alt: Coverage badge from codecov .. image:: https://readthedocs.org/projects/astroid/badge/?version=latest :target: http://astroid.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black .. image:: https://results.pre-commit.ci/badge/github/pylint-dev/astroid/main.svg :target: https://results.pre-commit.ci/latest/github/pylint-dev/astroid/main :alt: pre-commit.ci status .. |tidelift_logo| image:: https://raw.githubusercontent.com/pylint-dev/astroid/main/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png :width: 200 :alt: Tidelift .. list-table:: :widths: 10 100 * - |tidelift_logo| - Professional support for astroid is available as part of the `Tidelift Subscription`_. Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it... ## AI interpretation — verify before relying Astroid provides an extended abstract syntax tree (AST) representation of Python source code with static inference and scope analysis capabilities, powering tools like pylint for code quality analysis. Verdict: Astroid is a mature, actively maintained library well-suited for projects requiring Python AST analysis with inference capabilities. Its low install friction, copyleft licensing, and zero known vulnerabilities make it a solid choice for code analysis tools, though users must ensure LGPL compliance in their own projects. [View on SkillFed](https://skillfed.io/packages/astroid) · [View on PyPI](https://pypi.org/project/astroid/)