--- id: parso version: "0.8.7" license: MIT license_treatment: permissive maintenance: active --- # parso — A Python Parser License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install parso uv add parso poetry add parso ## Description ################################################################### parso - A Python Parser ################################################################### .. image:: https://github.com/davidhalter/parso/workflows/Build/badge.svg?branch=master :target: https://github.com/davidhalter/parso/actions :alt: GitHub Actions build status .. image:: https://coveralls.io/repos/github/davidhalter/parso/badge.svg?branch=master :target: https://coveralls.io/github/davidhalter/parso?branch=master :alt: Coverage Status .. image:: https://pepy.tech/badge/parso :target: https://pepy.tech/project/parso :alt: PyPI Downloads .. image:: https://raw.githubusercontent.com/davidhalter/parso/master/docs/_static/logo_characters.png Parso is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors in your python file. Parso has been battle-tested by jedi_. It was pulled out of jedi to be useful for other projects as well. Parso consists of a small API to parse Python and analyse the syntax tree. A simple example: .. code-block:: python >>>... ## AI interpretation — verify before relying Parso is a Python parser that recovers from syntax errors and parses code across multiple Python versions, producing an analyzable syntax tree and reporting multiple errors in a single pass. Verdict: Parso is a mature, actively maintained parser library with no security vulnerabilities, zero dependencies, and permissive licensing. It is well-suited for projects needing robust Python syntax analysis across multiple Python versions with graceful error handling. [View on SkillFed](https://skillfed.io/packages/parso) · [View on PyPI](https://pypi.org/project/parso/)