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.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43ce1bac7d9f060211e8a0b2573db539d2d7e81faec2cb90cde819f598898c53 |
|
MD5 | ed7c30a8da1d785448b3199c3671a0dc |
|
BLAKE2b-256 | 643d8cc8ad1bdd3c70d3085323474e3d14f9a5248e7f61e567b7b5d8b0732364 |