# tree-sitter-python-orchard

[![crates][crates]](https://crates.io/crates/tree-sitter-python-orchard)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-python-orchard)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-python-orchard)

This is a tree-sitter grammar for Python.

### Using it

You can obtain this parser in various formats:
* as an archive from [the Releases page](/grammar-orchard/tree-sitter-python-orchard/releases), which contains all the generated files (bindings, parser code)
* as a Rust crate: `cargo add tree-sitter-python-orchard`
* as a Python package: `pip install tree-sitter-python-orchard`
* as an NPM package: `npm install tree-sitter-python-orchard`

### Contributing

Contributions are welcome, so are co-maintainers.

Unlike many grammar repositories, this one does not track generated files.
After cloning this repository, you'll need to run `tree-sitter generate` to obtain the parser.
If you want to use it via bindings, you'll also need to run `tree-sitter init`.

### Origin

This project was forked from https://github.com/tree-sitter/tree-sitter-python, to [ease the use of and collaboration on this grammar](https://codeberg.org/grammar-orchard#for-contributors).

[crates]: https://img.shields.io/crates/v/tree-sitter-python-orchard?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-python-orchard?logo=pypi&logoColor=ffd242
[npm]: https://img.shields.io/npm/v/tree-sitter-python-orchard?logo=npm
