Skip to main content

Binary wheels for using py-tree-sitter without a C compiler

Project description

py-tree-sitter-builds

The py-tree-sitter project (not to be confused with tree-sitter-python) provides Python bindings for the awesome tree-sitter parsing library. The documentation of py-tree-sitter says that you need to have a C compiler installed to use it, but installing a C compiler can be highly non-trivial depending on which operating system you have. It's also a huge dependency for what is otherwise a small and simple parsing library.

To use tree-sitter without a C compiler, you need to install two projects instead of pip install tree-sitter:

These two projects provide binary wheels, i.e. platform-specific .whl files that don't require a C compiler to be installed with pip.

Installation

$ pip install tree-sitter-builds

After installing, import tree_sitter should work.

How does it work?

Read .github/workflows/build.yml to see how GitHub actions builds the wheels. Here are the steps, at a high level:

  • Download py-tree-sitter v0.20.0 from GitHub (latest released version at the time of writing this)
  • Apply a patch to its tests to make them work when cibuildwheel runs them
  • Invoke cibuildwheel
  • Once the above steps have ran on Windows, MacOS and Linux, upload the wheels to PyPI

License

py-tree-sitter and this project are both licensed under the MIT license. Here is the LICENSE file of py-tree-sitter. Here is the LICENSE file of this project.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tree_sitter_builds-2022.8.27-pp39-pypy39_pp73-win_amd64.whl (80.3 kB view hashes)

Uploaded PyPy Windows x86-64

tree_sitter_builds-2022.8.27-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (106.6 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-pp38-pypy38_pp73-win_amd64.whl (80.3 kB view hashes)

Uploaded PyPy Windows x86-64

tree_sitter_builds-2022.8.27-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (106.7 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-pp37-pypy37_pp73-win_amd64.whl (80.3 kB view hashes)

Uploaded PyPy Windows x86-64

tree_sitter_builds-2022.8.27-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (106.6 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-cp311-cp311-win_amd64.whl (80.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

tree_sitter_builds-2022.8.27-cp311-cp311-win32.whl (70.8 kB view hashes)

Uploaded CPython 3.11 Windows x86

tree_sitter_builds-2022.8.27-cp311-cp311-musllinux_1_1_x86_64.whl (407.3 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

tree_sitter_builds-2022.8.27-cp311-cp311-musllinux_1_1_i686.whl (417.4 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

tree_sitter_builds-2022.8.27-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (407.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

tree_sitter_builds-2022.8.27-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (415.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

tree_sitter_builds-2022.8.27-cp311-cp311-macosx_11_0_arm64.whl (106.6 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

tree_sitter_builds-2022.8.27-cp311-cp311-macosx_10_9_x86_64.whl (116.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-cp310-cp310-win_amd64.whl (80.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

tree_sitter_builds-2022.8.27-cp310-cp310-win32.whl (70.8 kB view hashes)

Uploaded CPython 3.10 Windows x86

tree_sitter_builds-2022.8.27-cp310-cp310-musllinux_1_1_x86_64.whl (406.4 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

tree_sitter_builds-2022.8.27-cp310-cp310-musllinux_1_1_i686.whl (416.6 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

tree_sitter_builds-2022.8.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (407.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tree_sitter_builds-2022.8.27-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (414.8 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

tree_sitter_builds-2022.8.27-cp310-cp310-macosx_11_0_arm64.whl (106.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

tree_sitter_builds-2022.8.27-cp310-cp310-macosx_10_9_x86_64.whl (116.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-cp39-cp39-win_amd64.whl (80.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

tree_sitter_builds-2022.8.27-cp39-cp39-win32.whl (70.8 kB view hashes)

Uploaded CPython 3.9 Windows x86

tree_sitter_builds-2022.8.27-cp39-cp39-musllinux_1_1_x86_64.whl (406.1 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

tree_sitter_builds-2022.8.27-cp39-cp39-musllinux_1_1_i686.whl (416.1 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

tree_sitter_builds-2022.8.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (406.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tree_sitter_builds-2022.8.27-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (414.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

tree_sitter_builds-2022.8.27-cp39-cp39-macosx_11_0_arm64.whl (106.6 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

tree_sitter_builds-2022.8.27-cp39-cp39-macosx_10_9_x86_64.whl (116.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-cp38-cp38-win_amd64.whl (80.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

tree_sitter_builds-2022.8.27-cp38-cp38-win32.whl (70.8 kB view hashes)

Uploaded CPython 3.8 Windows x86

tree_sitter_builds-2022.8.27-cp38-cp38-musllinux_1_1_x86_64.whl (407.1 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

tree_sitter_builds-2022.8.27-cp38-cp38-musllinux_1_1_i686.whl (417.1 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

tree_sitter_builds-2022.8.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (407.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tree_sitter_builds-2022.8.27-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (415.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

tree_sitter_builds-2022.8.27-cp38-cp38-macosx_11_0_arm64.whl (106.6 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

tree_sitter_builds-2022.8.27-cp38-cp38-macosx_10_9_x86_64.whl (116.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-cp37-cp37m-win_amd64.whl (80.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

tree_sitter_builds-2022.8.27-cp37-cp37m-win32.whl (70.8 kB view hashes)

Uploaded CPython 3.7m Windows x86

tree_sitter_builds-2022.8.27-cp37-cp37m-musllinux_1_1_x86_64.whl (405.6 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

tree_sitter_builds-2022.8.27-cp37-cp37m-musllinux_1_1_i686.whl (415.6 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

tree_sitter_builds-2022.8.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (405.2 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

tree_sitter_builds-2022.8.27-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (413.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

tree_sitter_builds-2022.8.27-cp37-cp37m-macosx_10_9_x86_64.whl (115.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

tree_sitter_builds-2022.8.27-cp36-cp36m-win_amd64.whl (90.3 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

tree_sitter_builds-2022.8.27-cp36-cp36m-win32.whl (78.6 kB view hashes)

Uploaded CPython 3.6m Windows x86

tree_sitter_builds-2022.8.27-cp36-cp36m-musllinux_1_1_x86_64.whl (404.5 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

tree_sitter_builds-2022.8.27-cp36-cp36m-musllinux_1_1_i686.whl (414.7 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

tree_sitter_builds-2022.8.27-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (405.1 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

tree_sitter_builds-2022.8.27-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (413.4 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686

tree_sitter_builds-2022.8.27-cp36-cp36m-macosx_10_9_x86_64.whl (115.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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