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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f0a9899a926c0dff6c76f7c86b83ffb8c6fc44694f33dc51a657d29499622f |
|
MD5 | e2de8410e557be6f5361e7719911efc8 |
|
BLAKE2b-256 | 9f2c8e0fb92bb2cfa1970965c495fffa27ed9728b028bfc107c1f8cd09fa30f4 |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf916fcf7441f44473f82bfeff1bf2ccba5ad51ca4a4958d25c4fd20efb78b4 |
|
MD5 | 5f90378b6bb480f0eb5f81aeab4b0489 |
|
BLAKE2b-256 | c87805c2d8c2bdcc084e52f364ee7eaee6f84b7d0110ec605080c9fb714b42ed |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb9dddfe44cc2a8da33da276c805603fb2f1ad73b0a738fa1c603aed94e3e03 |
|
MD5 | 477a7ba0e5616ed48ebbdb3571292f16 |
|
BLAKE2b-256 | e5db14a261bb4a94774e3f0e07d057913c4131bff5d6df02c0f5989de0c756b4 |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d394ed7f40478113b80e41719ad32f294e40788b4688bb8ac519caae0de69744 |
|
MD5 | 25c88af25f6929ec0190769ba18cd8d4 |
|
BLAKE2b-256 | f486314213f8f74e218e7657a8ebaf0660d57878b43980202741662bf1b9b09c |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72bdb36b95784ee42d0e925bfc89d6b97d69ef131bb1e61aa8f1126e41b56705 |
|
MD5 | 13330126aa55fa08e5909c51e56fcf58 |
|
BLAKE2b-256 | fecd8aea892246ef962fa82031cf681e9aa0ec6604fea7f3fc05f81f57db7138 |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0703c0cdcf0f1419689ddcbb4b7b6f0749f289859f7adf8043c9f1d7c81b3ea |
|
MD5 | 209b174932a6feeed7f76ecf324681cc |
|
BLAKE2b-256 | cbb9aa3948b1bfa67228c2917e1e054af11b544f749215104271bb471c0a8d3f |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13718fc22623a5dfabf40d26da660609d2b640420da204bb32ab809a4d7991e |
|
MD5 | cf113b39e07b35696b07a3a226d8c464 |
|
BLAKE2b-256 | 6b149db9b725ff2aa08b627b4f6c3c35ee46fbfbee4e6b007e3bc4966d34202f |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe4b7d6aa325cfc7c31a13ff053a425468aa1e532eea321a482bfff423e8fcb |
|
MD5 | e0322b5c7871b9a7f47a5a60070396e5 |
|
BLAKE2b-256 | b716ddf078a7110a1a19e8fe80a3d2d4767f3bfea804b6b5d7afafaf0638830c |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b66c81e42c0e3c4154ac4213a2b8670de3d2cea0ae4e5f20125546ff2d52b2 |
|
MD5 | 305201d4139ddd63294a4613d114293f |
|
BLAKE2b-256 | 5b88733ac75f433c9cbca1261a34c2d0053d57e1d83601a7eee7bfdfb4eab753 |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cdd9418bbdef1fc8f874791ae5011a1155aed6c7b601f310d6998e04ab49c37 |
|
MD5 | 223b14845f6754f1628acb61b53ac12d |
|
BLAKE2b-256 | d579ed3a4ca1d462b07f09332053c3e4ff08c95175e53405f47bcfe78ed2781c |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf3d61efb0d70fbd012f9f72a5a1d64eb9c7bedd837255a1243724ebcf804a1 |
|
MD5 | b4eb728b3993e854db4079a709377570 |
|
BLAKE2b-256 | 0388d91a73ea8541a64208b9fd2098a85965efd1955be52cfda5c56070ac0b72 |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30cff97122f37b6d5efe4ec523c26b18b9aa23ec9399e840ee6484a6bcc08ec8 |
|
MD5 | 1af81f904d34f35b8825b584e1a46d56 |
|
BLAKE2b-256 | 76236ed6811303b72a5772d361d142ce10408f1e95c572fd90efa1010695653c |
Close
Hashes for stack_graphs_python_bindings-0.0.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c69f34814ccf0c577812ed07ea2cdcf56c8a228a3ca48be8f2558411c93d3d1 |
|
MD5 | 20310da9a16329120ff59bf869e014a8 |
|
BLAKE2b-256 | e4a21d69a6119387691189f6b338a5108b9b374e574db3130836f2149cedca20 |