Skip to main content

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 threadle executable available on PATH

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

threadlepy-0.1.4.tar.gz (26.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.1.4-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: threadlepy-0.1.4.tar.gz
  • Upload date:
  • Size: 26.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.1.4.tar.gz
Algorithm Hash digest
SHA256 4c47ea2c347c61364650265a46a36754e3252db876f892e90b77f736fd72714d
MD5 77e987a15f91fabc2a9abc3223506c0d
BLAKE2b-256 ea265d341b439f7f4bb3b8c7ed99a140832c7dd1c6b07a672ada263157d16025

See more details on using hashes here.

File details

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

File metadata

  • Download URL: threadlepy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 208b9d0277346148e6a0f77da3943ebf62126fbb14920fbe8c7a514bec9fd9cd
MD5 994643224ed52218ee2b4de0c2d42835
BLAKE2b-256 7a916a7cdf2266b7181581b72f1f5fc04522ae81bf24b03edbb9b86bbf32dcf9

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