Skip to main content

a Python client for Threadle

Project description

threadlepy

threadlepy is a minimal Python client for the Threadle CLI (JSON mode).
It starts a Threadle subprocess, communicates via stdin/stdout, and exposes a thin set of command wrappers.

Status: Experimental / early-stage. API may change.


Installation

From PyPI (once published):

pip install threadlepy

Local editable install:

pip install -e .

Requirements

  • Python 3.9+
  • A working Threadle CLI executable (threadle)

Quickstart

import threadlepy
import threadlepy.client as client
import threadlepy.commands as th

client.start(path="/Users/doge/Documents/Threadle/Threadle.CLIconsole/bin/Debug/net8.0/threadle")

th.set_workdir(dir="/Users/doge/Documents/Examples")

lazega_nodeset = th.load_file(
    "lazega_nodeset",
    "/Users/doge/Documents/Examples/lazega_nodes.tsv",
    type="nodeset",
)

lazega = th.load_file(
    "lazega",
    "/Users/doge/Documents/Examples/lazega.tsv",
    type="network",
)

th.info(lazega)

th.shortest_path("lazega", 1, 23, "advice")

client.stop()

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

threadlepy-0.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threadlepy-0.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file threadlepy-0.0.2.tar.gz.

File metadata

  • Download URL: threadlepy-0.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for threadlepy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 588dcbd78e39d019d66f675a6d7053ae4f8e04df6f824cd1667fae16db732414
MD5 ccc5a77c1ade785dce6482ce13979a07
BLAKE2b-256 f8c474fe251c6a50b5d98be587e48470aec62eb1b829fe052557babf398aa1e4

See more details on using hashes here.

File details

Details for the file threadlepy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: threadlepy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for threadlepy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e565a842da0d7ea71a68b3ad7207c79aa5077e52b461f096a4458170b1d6d969
MD5 ec783e3118341d530e9989e0efa853e4
BLAKE2b-256 62c7c5b9df918957cc01ca46264201a7244b680582310d02594f9c3bef83dfa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page