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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a7411d8d7aee5a979eb8f1f28930efaff64fd149a0649f226772d22bd2bf76 |
|
MD5 | c0d6a0685d39fd59a7ae9d5cd59c2c3f |
|
BLAKE2b-256 | 8561ed1d94033f2d1a69a1ce19c39f390700603ef5f6ee1ce70ec9bed1d2426d |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b303bbe3c50871cbda2b329a652ffa2c544efd320f2994004ec9727b951dbba0 |
|
MD5 | 0f0b5559bfa59791ba905009b7f04810 |
|
BLAKE2b-256 | d7694b17fd6054d5731cc4868bfe696c0521e86c73687813ecc8ce4a38825f17 |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e190f7cb47a970fcced431122c2ea41144911e265fd83b404761dd8932922f81 |
|
MD5 | 7cc65c1a01a19d92728f64346deb068b |
|
BLAKE2b-256 | 7a4a557b7aab5bd801124ad708dafc1e715126d7dd1cc5819be290374a2f596a |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa804919423aaf39f294337f35ecae50d76b63a1f1ec0cdb82906f818728de3c |
|
MD5 | 9046dbb5605da92cfe443c412c863dc8 |
|
BLAKE2b-256 | 54f2c72910eab9cda751ee57b1a67a5b53bbd005bc03d3e56c82edf041ec2c8a |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e72e7447b360d7412aefc905c3890f4aa55ec1b99f020124e575840328fb0fac |
|
MD5 | af4ace2ab9e52e53fbac0409e400c5df |
|
BLAKE2b-256 | 83e564e1b0df54d17564462d82e2c4b1268553f73ae85a54edbf1cb7334ca26f |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4114e238a06515e317c3e4f19f8290096058490747288d0ae415a2a67a528bfe |
|
MD5 | 55d2a84e019a368058e5870184038ca7 |
|
BLAKE2b-256 | 34f1941c7a8a048642ebf8a340f92d7439b9d02260b19e3ec60f13cf1870846c |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c506a1bbd5f6b697683994435aee8ddc0fadf7484918232e5083d5f3660ce43 |
|
MD5 | 3d4085badc1fe6533edd81cfce8a019c |
|
BLAKE2b-256 | de2be7615a90ed68d239722b5d892defb2ff069f94738f3f7b032573ce2426df |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63bf817b29364ba826e7e25d11f41766719d2d57f4b8826a5010f4247599a7c8 |
|
MD5 | 55a1133f4efadae462a0fcdd8f7ab3c9 |
|
BLAKE2b-256 | 060eed5fafe688f08b7c81e28df0dd8dff112d06a72722357a49ee0b4e07b30a |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78d9080f937b53ecadd24d3a1553bc130c71601940910c39900fdf823c7a1da8 |
|
MD5 | 6e8ab11839aa61ca06cf9c0a617f67b0 |
|
BLAKE2b-256 | 7d74e29a4892f476ffd27a76efb6ae98c79cdff2cda15c4974677af849b2bc45 |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b646d65af0d218a7f18f348c10923e196c446e1c38bba1318e7bf9763cef0eb9 |
|
MD5 | 06e2c45d4aa002588fd28c4aaa3f29e2 |
|
BLAKE2b-256 | 12f39bf68c0255b7af76c01c8c40793c3c1e88a65f468418467f3ea2939478f8 |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfaed54ff73579feef20e3e419fbe61f325ec1f69555598122646b0614fa7594 |
|
MD5 | bd5ebdb08154467acc52cd9e16f65d45 |
|
BLAKE2b-256 | 0d1a038cfb85c60436aadad667894285acf2d4e36dbcf82f6b542ccdfc426325 |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084e644b95b343b18f092ff7948ab03dcc3d34713e3845558a8f49aa1c26e072 |
|
MD5 | b08dd8ba7d08aa68dd108663e5ffb260 |
|
BLAKE2b-256 | 0c75c80bcd8ddb00646728ca68a7f0272ee79d786c4dd84d9d4679805d34ebba |
Close
Hashes for stack_graphs_python_bindings-0.0.7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7f2c72c47ab1a844c32d0e0a7b2a10a957f2c70a6746145c1886b1e95220f98 |
|
MD5 | d2d9298374a0117822c3db9d342edcfa |
|
BLAKE2b-256 | 09501a34c86b098d687c84f424260fd79ac3870e773d8228fe7ba343debe522a |