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.3.tar.gz (26.3 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.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

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

Hashes for threadlepy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4cbfadd3d3a1de9f00a73733479a1d05d081a72c477902ba06f04bf90517779c
MD5 60017fcf39a586d253f7be5638539899
BLAKE2b-256 407aba2e23822fb9c461a8205de6b1c7c552825b5b261a4cf354d2d21872371b

See more details on using hashes here.

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

Hashes for threadlepy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2c94388a1d00b08980a705ba4cd9d48e86c91a785ea12f13e5802d60bb39049c
MD5 fc602d20980eafe5f4079bf01d245e37
BLAKE2b-256 cd6f7a6ec35e9138217f7cf60fffbfd0e1391bd1eb0ed522f276870c5e809ae9

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