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_providersentry 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-tasksandfunctualize-statefrom 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—TaskProviderimplementation that stores tasks in aStateBackendwithtasks:key prefix. Methods:add(),list(),update(),delete(),link()LocalTasksPlugin— Plugin entry point that resolves the activeStateBackendfrom DI at boot and registers aLocalTaskProvideras theTaskProviderimplementation
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)
| File | Size | Uploaded | |
|---|---|---|---|
| functualize_tasks_local-0.1.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|