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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83c84b589d6a36ab33d1ab4c240c837b93ba24dbc65b583a8f28f3296cb839a |
|
MD5 | 2b4abf49566bb979662a3383bb07bfac |
|
BLAKE2b-256 | 06b8a178941027195a77a7d5eb3f29012f26faf71cb27cfcf2cfcab729a7ae73 |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d9ea173073cdc0d402e3346af477ad8049af4f46c5456777ac2fd7fd15d4e97 |
|
MD5 | b6229b08919341bbccd7397349f0d461 |
|
BLAKE2b-256 | 748a9eed653a2118e7b1b270a43f48577991cdd217d41c99dbd22b5591fb8a4e |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7129a577d9b663d7da213d096777b9f3ad0d8f66706b697766983e0f51a04f5 |
|
MD5 | 3a5a3f5a0ad9e9cb9a1dc173c80d027b |
|
BLAKE2b-256 | 5a3a63c2740265e3d554eb792c06bbb6f5a7b9a6318b1715d12d04244d78b6c6 |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0982ff78a74c49fd6c0bfecbe40b3f491dc71ad38c831dbb9810095649f24b5 |
|
MD5 | 321daf980461742bfe6b6114d419311a |
|
BLAKE2b-256 | dfa605bb210c6fef5f7105ae26b1de7ca6903f665a2eae25da55a2f9e2ef2087 |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abfbd37e0dfd7a5efa20c51104fc53a0d0ae9c45a90790250a6119e9a4fd43e8 |
|
MD5 | b83202685f53f93718703fe8732ef642 |
|
BLAKE2b-256 | 3d1ed5aa73c06ba70ee83f0e8e27498f68b48a6bfa52f9213ac0252177ed1434 |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a5f4b873bf42508f3ddc8d0757e57df8746171f407792f5be4d17eaf681d84 |
|
MD5 | e2aaa10146be9bd9d95ba5d5d1bd5d97 |
|
BLAKE2b-256 | a7f0ac9937451a912f40d84441acc4bd4cb58a8ded166e1aeb9dea5df8847c42 |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aaaab41561356c8888dda98b86b4597d0593c550dcc55c4fe0ab4e99941b236 |
|
MD5 | 4389629108fcfe63ee75eb986c8cc0fd |
|
BLAKE2b-256 | 545dcf7d77dfa11b577a7dbf9831c22efc02f18b706fc858e8c264cb25942296 |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c69d150cfcb6f6397fc424ddce70914624e0f7e1eb5271787de23098c1970ed9 |
|
MD5 | 42ecbf9c8d14b21eaf8bfc3411c850ce |
|
BLAKE2b-256 | 53df60cfe7b59cd77d912010517d34d4fd65a61e6337fec05808cfedeb1b1afc |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d0c50114c67a0cc5a2dfb075f5d59e4eafd93f1f304f11bcef94629dfc86be |
|
MD5 | 001be5784b7e644b1f3a09cb74ab7a09 |
|
BLAKE2b-256 | cc474c6ad8d8c6beb6acc1fa3f8cfa57fa513a9fa71e4be1ff79d105e7df45ff |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37eb9ff16d9113d64e3bce968902a75cfa46b2672691e65893ff2791b286d51e |
|
MD5 | cbed61d12eeb8ad937033edb66e34a86 |
|
BLAKE2b-256 | ded63f2d1f7c2b687b4eae6d2b26be528d009cd023a3b496111328188593ba2d |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de0ca86f71acaeaba0bd1ba9058572807083b4f50eb3c06bc3f38dfb0f40296 |
|
MD5 | e203cd8cca1e902e89f3687a15b4534b |
|
BLAKE2b-256 | bf310575328602e1be372e5a7d74162481761ce7e7e7107b550388d5474e869a |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93303c4d2776d536a9f58e8a30b31d38d77bb226314f6ef77e304fd3f7733a0b |
|
MD5 | 67989d1b27b1f4d1ac1f0212987403c6 |
|
BLAKE2b-256 | d0c258ab4d9332899eeb73b0139a471a8213d3c85468f2c0280b0b8268ef302a |
Close
Hashes for stack_graphs_python_bindings-0.0.8-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626932c2cc55e4d541cd92b7fe55166c6c7b0bb45c925a714d6fdd742abc2f58 |
|
MD5 | fc79ae3dfdd401925cc28ad985b43760 |
|
BLAKE2b-256 | 37cb63ce2278762f08adaa4f168130bc7cc81806e24c8717392d02d712ef3cc8 |