# tree-sitter-python [![CI][ci]](https://github.com/tree-sitter/tree-sitter-python/actions/workflows/ci.yml) [![discord][discord]](https://discord.gg/w7nTvsVJhm) [![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org) [![crates][crates]](https://crates.io/crates/tree-sitter-python) [![npm][npm]](https://www.npmjs.com/package/tree-sitter-python) [![pypi][pypi]](https://pypi.org/project/tree-sitter-python/) Python grammar for [tree-sitter][]. [tree-sitter]: https://github.com/tree-sitter/tree-sitter ## References - [Python 2 Grammar](https://docs.python.org/2/reference/grammar.html) - [Python 3 Grammar](https://docs.python.org/3/reference/grammar.html) [ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-python/ci.yml?logo=github&label=CI [discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord [matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix [npm]: https://img.shields.io/npm/v/tree-sitter-python?logo=npm [crates]: https://img.shields.io/crates/v/tree-sitter-python?logo=rust [pypi]: https://img.shields.io/pypi/v/tree-sitter-python?logo=pypi&logoColor=ffd242