Skip to main content

ToolLane (Python)

Ported line-for-line from the TypeScript implementation. See the root README for the pitch, the prior-art table, and the scope decisions — this file only covers what's specific to running the Python code.

Install

pip install -e ".[dev]"

Quickstart

PYTHONPATH=src python3 examples/quickstart.py
from toollane import ToolLane

tool_lane = ToolLane(is_safe=lambda call: call.name in {"read_file", "list_dir", "grep"})

for lane in tool_lane.plan(calls):
    print(lane.mode, [c.name for c in lane.calls])

async for result in tool_lane.run(calls):
    # result.status is "fulfilled" or "rejected" — one failure never
    # stops the rest of the batch.
    ...

Test

pytest

Status

Lane scheduling, streamed execution via an async generator, and isolated failure handling are real and tested. Not yet published to PyPI — toollane is unclaimed there.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toollane-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

toollane-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toollane-0.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.8

File hashes

Hashes for toollane-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1819b5b0f55f9dc00f4e29fe1fac42d7b7af9a5f77da9a5aff6f071ba00e65b4
MD5 b1edc271078d697a275cca6a7f487015
BLAKE2b-256 f67a4de6143ffb0092b213bb3f78d53975c966299f2f08d71e2959e5e28a82c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: toollane-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.8

File hashes

Hashes for toollane-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b94b843ede95feaac9c0ee859ab9e1291dc4f334dac656f2e470295fd8476dcc
MD5 0f1627bb9a2dde9f3a5fd37f1bef024b
BLAKE2b-256 368df816fa9dc1e51e1af3ac3c6dd3d6aaf2aecfce9259dc27560495f8e43afa

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 Sentry Error logging StatusPage Status page