Skip to main content

functualize-tasks

Status: Published — Independently installable from PyPI.

Tasks Domain SDK for the functualize framework. Provides a task management capability that acts as a mutable planning scratchpad within job execution — create, list, update, delete, and link tasks with structured event emission on every mutation. Storage is delegated to pluggable TaskProvider implementations, making the capability backend-agnostic.

Installation

pip install functualize-tasks

Quick Start

from functualize_tasks import Tasks, TaskStatus, TaskLink

tasks = Tasks()

# Create tasks
task_id = tasks.add("Run database migration")
tasks.add("Deploy service", linked_to=TaskLink(kind="job", target="deploy"))

# Update status
tasks.update(task_id, status=TaskStatus.IN_PROGRESS)
tasks.update(task_id, status=TaskStatus.DONE, notes="Migration complete")

# List and filter
pending = tasks.list(status=TaskStatus.PENDING)
all_tasks = tasks.list(filter="service")

Features

  • CRUD task management — add, list, update, delete, and link tasks with a clean method-call API
  • Event-driven mutations — every state change emits structured events (tasks.task.created, tasks.task.updated, tasks.task.completed, tasks.task.deleted) via a duck-typed EventBus
  • Pluggable storage — implement the TaskProvider protocol to back tasks with any persistence layer (in-memory, SQLite, remote service)
  • Rich data model — TaskItem with status enum (PENDING, IN_PROGRESS, DONE, SKIPPED, BLOCKED), optional TaskLink to associate tasks with jobs or workflow steps
  • Testing double included — MockTasks captures all operations for assertion while executing against a real in-memory provider
  • Type-safe — fully typed with PEP 561 py.typed marker for mypy/pyright support

API Reference

Public classes, types, and constants exported by this plugin:

Capability

  • Tasks — Main capability class providing add(), list(), update(), delete(), and link() methods

Protocols

  • TaskProvider — Runtime-checkable protocol that storage backends must implement

Types

  • TaskItem — Frozen dataclass representing a task (id, title, status, linked_to, notes, creator, created_at)
  • TaskLink — Frozen dataclass specifying a link kind and target
  • TaskStatus — String enum with values: PENDING, IN_PROGRESS, DONE, SKIPPED, BLOCKED

Errors

  • TaskNotFound — Raised when an operation targets a non-existent task ID

Event Constants

  • TASKS_CREATED — "tasks.task.created"
  • TASKS_UPDATED — "tasks.task.updated"
  • TASKS_COMPLETED — "tasks.task.completed"
  • TASKS_DELETED — "tasks.task.deleted"

Testing

  • MockTasks — Operation-capturing testing double with operations, adds, updates, deletes, links properties
  • MockTaskOperation — Frozen dataclass recording a single captured method call (method, args, kwargs, result)

Metadata

  • domain_metadata — DomainMetadata instance describing the tasks domain SDK

Development

Run plugin tests:

uv run pytest plugins/functualize-tasks/tests/ -v

Release files for functualize-tasks 0.3.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 functualize-tasks 0.3.0
File Size Uploaded
functualize_tasks-0.3.0.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for functualize-tasks 0.3.0
File Interpreter ABI Platform
functualize_tasks-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.9 kB

Release files / functualize_tasks-0.3.0.tar.gz

Download URL functualize_tasks-0.3.0.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b37580576a5cfa51384a4a701ff96666b890654f9bd3fdf3be355fe43ab15f0b
BLAKE2b-256 checksum
How to use checksums
bad2ff3a6d925d2c6c6d962d5e296187dcfb6e8344a3dfcbfcbcb61638a5d268
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / functualize_tasks-0.3.0-py3-none-any.whl

Download URL functualize_tasks-0.3.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b35f21491289d3ed945779407c8287c9905a0ce5e48b3ad6928ac956028d089
BLAKE2b-256 checksum
How to use checksums
736059e0e10364c7dfc38ac32b898759c83c09c68e4d329929d8c9f321779391
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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