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.1.tar.gz (21.6 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.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: threadlepy-0.1.1.tar.gz
  • Upload date:
  • Size: 21.6 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.1.tar.gz
Algorithm Hash digest
SHA256 bd3a729bac7a6c2453fe3dbb29010c7fbab583281e1ce2e5a007b5e537b5d3c4
MD5 437e02b34374bc7fcb0a0ca88d5fd5c2
BLAKE2b-256 756bcf487fce73469519211afde9cff5b636ecf1cfffbb6a730ca2e9943b8489

See more details on using hashes here.

File details

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

File metadata

  • Download URL: threadlepy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac604cff98104c2c94842f6e7641455b46d07f4f5d6a897dab17a2a7bb13a5ab
MD5 28f1dcf61018326bbd7fb6c3a167524b
BLAKE2b-256 8d7e8028449cbba3210341df1579b673cb842ac6366abf115ce3c0579c2ef2cc

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