No project description provided
Project description
Stack-Graphs Python bindings
Opinionated Python bindings for the tree-sitter-stack-graphs rust library.
It exposes very few, easy to use functions to index files and query references.
This is a proof of concept draft, to test scripting utilities using stack-graphs easily.
It uses pyo3 and maturin to generate the bindings.
Installation & Usage
pip install stack-graphs-python-bindings # or poetry, ...
from stack_graphs_python import index, query_definition, Position
# ...
You can refer to the example in test/test.py for a concrete usage example.
Development
Ressources
https://pyo3.rs/v0.21.2/getting-started
Setup
pipx install maturin # or pip, ...
Testing
maturin develop
python tests/test.py
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 Distributions
Close
Hashes for stack_graphs_python_bindings-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe16b3948dc9488b4bd6cf06c9fbb88ffe750934ee19ee7a4b4fc0058deb29a |
|
MD5 | 674f17053bd33f23dcca88285d5a6f5f |
|
BLAKE2b-256 | 03452ae9dbb59006711111a6493ec7dd0d40ef15233e1a83cd1d710f6b922c5f |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fadaad342abcc1ef889f9c0c8a0cd8caba62a9a06f3727a70ee58a491c2d29b |
|
MD5 | e8975bd2404d1f82ea4ca6be71a9d2b4 |
|
BLAKE2b-256 | 15289f463693cbee6d2036be59f13dd85a1d196cb09440d9ed123a9d14983f10 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd8cab88441bef825ad524b2e587b70e8e614bc37a18946d674571ccba0d701 |
|
MD5 | 107158b54ee3296ec0ab482df0b6548b |
|
BLAKE2b-256 | fd0b2ff1ce3c52b77d0aa95726c9dd0abbd122558f8cba3067d0a679cdadd809 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0209b517cb96b8b297ad72f6033c5503eea4eb13d41de874c212d34960fbd524 |
|
MD5 | 535d4d54a660d2931329bdd80111840c |
|
BLAKE2b-256 | d2cd339b9725e25fd9c221824fdbade82a9819bdcc367f889d64e800cbbef997 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecbfdfc1498bc0eb5460d720a3f639f7879ac721ba7b7aea2d51603271d8e453 |
|
MD5 | cccf716b28ffa9c9e76df21e06176af8 |
|
BLAKE2b-256 | 2e1e4d76afc3366d89e6dc2217abfa3e46e25cdb5e332b839215fcd470fc2b3f |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4d170deb5c72fc4f50dbc5f3c35f7d1cd1fa05374077e5f24dfa4fc59001ba2 |
|
MD5 | 64f3f16240ae21e97c8a139bdab6920d |
|
BLAKE2b-256 | 495b81b4ea904f3c955b64e90cb78d05431a979bd9453aee144de2175a65c565 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799135e8c10955fd374ed7eba84470b2760a0cc0ac8b0798ef8d98dab8f02ec5 |
|
MD5 | 5a7e4925ab8d218afb887a825684e545 |
|
BLAKE2b-256 | e0ba580a94fbf6f1c00c2e74f3084f084299ad82b316eb46dafaedb989962435 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae85bf8ecbe1d2e9f3b9069115a3bfad5df8e8da8682754c125149108bb14aa |
|
MD5 | b557ec0db8a4bf7b66a85c8cd02746e5 |
|
BLAKE2b-256 | a4642ad956c1f098a7289fc1cc0ac539cc64d36dd1afae2b5b896b1355a1d449 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f19ee52cc0a60d5d510ee008784dff36f9aacd5258402e875fc1fed5a15c9f16 |
|
MD5 | e7725e50ba00e106b12fc2333a821258 |
|
BLAKE2b-256 | 757d76baed7355267811e989d9a6624fb5941d9fd01c3d0c550e74cac393c5e8 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f77099d5b4406d69eff4ed48434fd97a9790ff1d678e9c8fc66254085ee5368 |
|
MD5 | f96605d31d9e6149097ed4557e58d2fa |
|
BLAKE2b-256 | 59628222ede9899a443555df3630139b77fb93d5edba4a245104ed760a3ed9d7 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6989f46c6eb896ab87dc645a2d3ff4486903b1ebf6dac1b1eb17fa291b89bb8 |
|
MD5 | 55f29e0ecbd6c66e74be2a45b6967054 |
|
BLAKE2b-256 | 92810b728aa50b1a474e306c7ff7d15a9f2e72d86c0585d70ae0d1578d88a766 |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcbdf3cc87eb0d84cf6f388ae739f0178dd1afd8cd51e45abe73d3e781e2b5da |
|
MD5 | 74aef993270c26810bf6f9a98c46352f |
|
BLAKE2b-256 | 40e620b78ac43f05180ebbaf7ebcecc2e43bc6e2153b2dd4cb46f76e32b3f00e |
Close
Hashes for stack_graphs_python_bindings-0.0.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb654a29401a24c707384adcf00b752c76c51f2e628052c8080b3c7da865b124 |
|
MD5 | b930ad03daad95bf86d240cd79d797d6 |
|
BLAKE2b-256 | cabc1569d39c70bdd6fbc3cf6af248b4363f849dfd705fc12368382985eb2ba3 |