Python client for the Threadle CLI JSON interface.
Project description
threadlepy
Python client for the Threadle CLI JSON interface.
threadlepy starts a Threadle subprocess and exposes Python wrappers for core Threadle workflows.
Installation
pip install threadlepy
Requirements:
- Python 3.9+
- A working
threadleexecutable available onPATH
Quick Start
import threadlepy
import threadlepy.commands as th
with threadlepy.session(timeout=3600):
examples = th.load_examples("lazega")
lazega = examples["lazega"]
print(th.info(lazega))
path = th.shortest_path(
lazega,
node1id=1,
node2id=23,
layernames="friends",
)
print(path)
If threadle is not on PATH, pass the executable path explicitly:
threadlepy.start("/full/path/to/threadle")
Documentation
For more examples and workflows, see:
docs/threadlepy_tutorial.ipynb
Project details
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 threadlepy-0.1.3.tar.gz.
File metadata
- Download URL: threadlepy-0.1.3.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cbfadd3d3a1de9f00a73733479a1d05d081a72c477902ba06f04bf90517779c
|
|
| MD5 |
60017fcf39a586d253f7be5638539899
|
|
| BLAKE2b-256 |
407aba2e23822fb9c461a8205de6b1c7c552825b5b261a4cf354d2d21872371b
|
File details
Details for the file threadlepy-0.1.3-py3-none-any.whl.
File metadata
- Download URL: threadlepy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c94388a1d00b08980a705ba4cd9d48e86c91a785ea12f13e5802d60bb39049c
|
|
| MD5 |
fc602d20980eafe5f4079bf01d245e37
|
|
| BLAKE2b-256 |
cd6f7a6ec35e9138217f7cf60fffbfd0e1391bd1eb0ed522f276870c5e809ae9
|