No project description provided
Project description
Stitch Bindings
This repo provides Python bindings to stitch.
Installing the bindings
pip install stitch-core
Opening a new python session and running import stitch_core should succeed.
Using the bindings
TODO give tutorial
For more usage examples, see tests/test.py in this repo.
Using a specific version of stitch
To build the bindings for a specific commit, modify the line beginning with stitch_core = in Cargo.toml to have the SHA of the desired commit, for example:
Locally building the bindings
Adjust the rev value in Cargo.toml to the desired commit SHA:
stitch_core = { git = "https://github.com/mlb2251/stitch", rev = "058890ecc3c3137c5105d673979304edfb0ab333"}
To build, install, and test the bindings run:
make
which install the bindings for python3 by default. To use a specific interpreter pass it in like so:
make PYTHON=python3.10
Note on testing bindings: simply executing python3 tests/test.py may fail for strange PYTHONPATH-related reasons so use make test or cd tests && python3 test.py instead.
Publishing the bindings to PYPI
maturin publish
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stitch_core-0.1.5.tar.gz.
File metadata
- Download URL: stitch_core-0.1.5.tar.gz
- Upload date:
- Size: 455.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
237641034158a9028997be4db166acc259c8b9e8d92dac18d40195c40ecbbd30
|
|
| MD5 |
79a52b357aac549813fcd55ca97acaa0
|
|
| BLAKE2b-256 |
b2dabdfe56cdf1cdc388dd3ab693cf737ee18c82093408497669233e5a8178e9
|
File details
Details for the file stitch_core-0.1.5-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: stitch_core-0.1.5-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 620.5 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df19c2dbf1aa560c1450e5130bee4f5b3ace67271f565e50ad4695e6577a3dc0
|
|
| MD5 |
a70aad7d08f9dafe6668773612182b56
|
|
| BLAKE2b-256 |
dd8c89aa362d829ef96eee5f2f2fb5805faea0627eb404795db2db90212d5ab2
|