Skip to main content

functualize-tasks-local

Status: Published — Independently installable from PyPI.

Local state-backed task storage plugin for functualize. Provides a TaskProvider implementation that persists tasks as JSON blobs in the active StateBackend, using keys prefixed with tasks:. Zero external dependencies beyond the functualize workspace packages — if you have a state backend registered, this plugin gives you a fully functional task queue with no additional infrastructure.

Installation

pip install functualize-tasks-local

Quick Start

from functualize_state import InMemoryState
from functualize_tasks import TaskStatus
from functualize_tasks_local import LocalTaskProvider

# Create a provider backed by an in-memory state store
backend = InMemoryState()
provider = LocalTaskProvider(backend=backend)

# Add a task and retrieve it
task_id = provider.add("Deploy staging server")
tasks = provider.list(status=TaskStatus.PENDING)
print(tasks[0].title)  # "Deploy staging server"

# Update status and clean up
provider.update(task_id, status=TaskStatus.DONE)
provider.delete(task_id)

Features

  • State-backed persistence — delegates all storage to the active StateBackend, so tasks survive restarts when using a durable backend like SQLite
  • Automatic plugin registration — registers via the functualize.tasks_providers entry point with name "local", no manual wiring required
  • Full CRUD operations — create, list, update, delete, and link tasks with filtering by status or title substring
  • Zero external dependencies — only depends on functualize-tasks and functualize-state from the workspace
  • JSON serialization — each task stored as a compact JSON blob under tasks:{task_id}, easily inspectable for debugging

API Reference

Public classes exported by this plugin:

  • LocalTaskProvider — TaskProvider implementation that stores tasks in a StateBackend with tasks: key prefix. Methods: add(), list(), update(), delete(), link()
  • LocalTasksPlugin — Plugin entry point that resolves the active StateBackend from DI at boot and registers a LocalTaskProvider as the TaskProvider implementation

Development

Run plugin tests:

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

Release files for functualize-tasks-local 0.1.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-local 0.1.0
File Size Uploaded
functualize_tasks_local-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / functualize_tasks_local-0.1.0.tar.gz

Download URL functualize_tasks_local-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4e2af4de15184bfc824532c029b8b8a38339d87194a6b748aceb7c14aa17dc05
BLAKE2b-256 checksum
How to use checksums
2f06f9f31fa3ecdf426012e93b6b75fb82bb1300a3902324d5f68a5ecafcaa45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / functualize_tasks_local-0.1.0-py3-none-any.whl

Download URL functualize_tasks_local-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b31091160644311104cbd364aee4134929885331e5581e993ccb534d52340f5c
BLAKE2b-256 checksum
How to use checksums
df526372c8e9dc1e723663d62ab1aa0539461b9589149b94687869e78d55d6bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.0

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

This release

0.1.0 This release

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