Skip to main content

A Python parser written in Python.

Project description

Travis-CI build status Coverage Status

Parso is a Python parser that supports error recovery and round-trip parsing.

Parso has been battle-tested by jedi. It was pulled out of jedi to be useful for other projects as well.

Parso is very simplistic. It consists of a small API to parse Python and analyse the parsing tree.

Ressources

Installation

pip install parso

Testing

The test suite depends on tox and pytest:

pip install tox pytest

To run the tests for all supported Python versions:

tox

If you want to test only a specific Python version (e.g. Python 2.7), it’s as easy as

tox -e py27

Tests are also run automatically on Travis CI.

Acknowledgements

  • Guido van Rossum (@gvanrossum) for creating the parser generator pgen2 (originally used in lib2to3).

Changelog

0.1.0 (2017-05-30)

  • Pulling the library out of Jedi. Some APIs will definitely change.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parso-0.0.2.tar.gz (111.0 kB view hashes)

Uploaded Source

Built Distribution

parso-0.0.2-py2.py3-none-any.whl (57.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page