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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cecd1d858c8d49baaaa8d46df8b8f5b3ce55e5b42efd21ce926cafd43efb88a |
|
MD5 | 4d57ab5e2bd3afd68cdefaf2cea0cbba |
|
BLAKE2b-256 | 41bb1b18fe677de280c04892c9d6b495bf647dff1030429c240a9e95a3926a86 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c851eceaee288b8b33783a480401517c6f5dbf8e87d769d3ae4f0da5b2d1d1af |
|
MD5 | 903408ff2767b950160dcac319632d84 |
|
BLAKE2b-256 | 431f42fdf93d24ad1b13f5efea3178975e74c3a1ada6ea2aafc2179efc350715 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a0ed3abd169fa16de360c5a59abb316b61b3e724a8db2a0be3f5dd7d86285d |
|
MD5 | 220d49735d61b541529baa5d637b6eaf |
|
BLAKE2b-256 | 31c86bbe33163ac74b6ec34396974a98f241e00317ed4074c622cc2b81bc6102 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef78a6f0d4ae4b322df822e9c1b8e036d3f76ff83293de6bfb4dd60c94bde2e1 |
|
MD5 | 29706f43b755173ec09e4c6400c4ce4f |
|
BLAKE2b-256 | b9c7f85f3f58432bfe360409308f5407ee2002486539c42962c6530b53ed0845 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee879cfef5289c261d1d8ea843cd2ce767dd2694e7d4dabded6f580493ee43e |
|
MD5 | b38c0cddcd81ed0f4d8c0a2876e59a72 |
|
BLAKE2b-256 | f55b8c2651a7761b513c27ec828f71cca0e798f0eceffec5b1c0cc24d4b2bf40 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44abb7ff6764da8c26dbb9865c5d87ee97f77232517368b753bd316c9eaf9351 |
|
MD5 | ca3226e6ee1b51c0cc966e24ae880ed3 |
|
BLAKE2b-256 | 2fdb92c412cf3259dd4766ab329170e3edda91938bc521c857c866a92b7eae2a |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b0dfbbb82113cdea2fe679914161f6ed98ecfac4198fcfbc8f1adc03853d9b |
|
MD5 | a225f3c83c39433c0ad0e52966447b5f |
|
BLAKE2b-256 | 70bf5af7eb7518f7e5aad2e9c34c2fdfeb87495f0de8dc3bcb87bac10dbb7ded |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68bc7facd1157291ffb095f8dd29b3f5c8f622e5b71f46cff725f43ea291917 |
|
MD5 | 49072c01fc2203719840a90028c672eb |
|
BLAKE2b-256 | 4d6de21dedad23d2e3a926b824d0bd490a3eafb4cf9342b0fbfa5557db2e3f65 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f30af7f04e02ab412e313668b319b6a72556d619089563e34b61cc50e13560 |
|
MD5 | b67521c1e11adb9125b52d3a289ac3b1 |
|
BLAKE2b-256 | a32b04d23c469336d7278735862118ed9b1a21dcfb600c516560848a22035a7c |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064678d348e58f860097c5154dd3f0ee7266a3ef84ff9fea142d3d2983dc5458 |
|
MD5 | 04fc848e5790cd1a55e341c747ce6186 |
|
BLAKE2b-256 | 307d2a729c7968c2da494122e37065abc660e47c3905fa258bb9f64dc1d505aa |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d11713932e45a75d9d9205fcc98ac5da71306fb94ebd644815d9de1fe4ea843 |
|
MD5 | e37585004e5bdfdb8cdc3b4c1d7559ea |
|
BLAKE2b-256 | dc411ec7079d8ac2121ba6635566dc58608ab45af111bef4ccb32ccceb4c95d6 |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb697140af7101d2588150973f8c18131a690eaa49588369055190efec73227 |
|
MD5 | 8949fccad06c9f4bbf4fbfea206f9dc7 |
|
BLAKE2b-256 | eebebe09d9e774af3de3837367ec9418d3f8ea0d27fea509cecd0704c3529fea |
Close
Hashes for stack_graphs_python_bindings-0.0.6-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0959e6312938259d487e5db4b4d73c312b2d9b4f53e7f300b5c40ef9ce2e0a27 |
|
MD5 | 827ec41746a83829874143dc45e37694 |
|
BLAKE2b-256 | 8bc1d2f29db842fd5c15a072f922f1fec50d135fe86646cff26073dc0b71e6b2 |