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.2.tar.gz (23.2 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.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: threadlepy-0.1.2.tar.gz
  • Upload date:
  • Size: 23.2 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.2.tar.gz
Algorithm Hash digest
SHA256 56d71e514e4f4d31ebca11e6dc30f4d3469f166c181d1e243feb99091ee8439e
MD5 5b1999090a7e73c96b180f0a2ba3cc1c
BLAKE2b-256 9dca4b220b12f8dbaa4a7516c5fc8e86b4600db2c807b455650bdf10100903a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: threadlepy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc3390942a9223955f6b5337e06e7d8df047f0a1f0774281e4c17e5d9d53f45c
MD5 436f95ead5dd936131e1391ceea7a6c1
BLAKE2b-256 0714c703b02cd69e888e96c839392a0a0d9dba9e9147af0bb1543f4c44a8cf85

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