A Python parser written in Python.
Project description
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
Uses semantic versioning
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for parso-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f72b57f41cd3a23c706b4dfc587c62f90c8cb0718aa28efbfdbde3b03361748 |
|
MD5 | 6910006092f5db11610b46667962fb1b |
|
BLAKE2b-256 | f4b0b9af6dd52d09db0b2dca8e306f363359ae3e49e1f8d6ea8a4b3277fd1acb |