Skip to main content

ttasks

A small Python task ledger, executor, and DAG workflow library.

ttasks models work as Task objects, executes them through a configurable TaskExecutor, persists them through an optional Store, and runs dependency graphs with TaskGraph.

Requirements

  • Python 3.12+
  • uv for the development workflow used by this repository
  • GitHub Copilot authentication for TaskType.PROMPT and TaskType.AGENT tasks

Quick start

from ttasks import Task, TaskExecutor

executor = TaskExecutor()
task = Task.bash("echo hello", title="Say hello")

result = executor.execute(task)

assert task.is_done
assert result.output == "hello\n"
assert task.result is result

What it provides

  • Task and TaskResult domain objects for tracking work and outcomes.
  • TaskExecutor for running Bash, PowerShell, Copilot prompt, Copilot agent, or custom handler tasks.
  • Event streams for lifecycle, progress, and subprocess output updates.
  • TaskGraph for dependency-ordered DAG workflows with finally tasks.
  • In-memory and SQLite stores for task and graph persistence.
  • Async single-task submission, graceful shutdown, cancellation, timeouts, and opt-in single-task retries.

Documentation

User docs are published with the generated API reference on GitHub Pages:

Build the docs locally:

uv run mkdocs build --strict --site-dir site
uv run pdoc ttasks --output-directory site/api

Development

Run the project checks:

uv run ruff check .
uv run ty check
uv run pytest

Run the full suite including live tests:

uv run pytest -o addopts='' --cov=ttasks --cov-report=term-missing --cov-fail-under=100

Metadata

Release files for ttasks 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ttasks 0.4.0
File Size Uploaded Provenance Actions
ttasks-0.4.0.tar.gz 126.1 kB With provenance Details for ttasks-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ttasks 0.4.0
File Interpreter ABI Platform Actions
ttasks-0.4.0-py3-none-any.whl Python 3 none any Details for ttasks-0.4.0-py3-none-any.whl

Total release size: 159.3 kB

Release files / ttasks-0.4.0.tar.gz

Download URL ttasks-0.4.0.tar.gz
Size 126.1 kB
Tags Source
SHA-256 checksum
How to use checksums
04463e1e484b1842ec5d8b4c8658c55e2c3658c4be14a06bd55278c41a746a9a
BLAKE2b-256 checksum
How to use checksums
511d464838f8fb070e9ddd038e1b78899e985378a0181cb4fd65b6f246be722a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

Release files / ttasks-0.4.0-py3-none-any.whl

Download URL ttasks-0.4.0-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9322d70400b9b7bc9b95f58e8f38c9cb50fb39f36e4665a836b76bcfc1391fe2
BLAKE2b-256 checksum
How to use checksums
00c16efe8b73870881553345eb55fd03b02e3e0ac32066fe39cfe3a1c7d0d699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

Security for ttasks 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ttasks-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page