taskwire
Progress reporting and awaitable dialogs for long-running operations, in Python and TypeScript.
A long-running job — an import, a report, a batch — needs to tell whoever started it what it is doing while it is doing it, and sometimes needs to ask them something before it can continue. taskwire provides:
- progress, with nested subtasks whose percentages compose rather than overwrite each other, and commits coalesced to one per interval;
- awaitable dialogs — the worker asks a question mid-job and blocks until the answer arrives, with the first answer winning across every open tab;
- cancellation, cooperative and sticky, which raises in the worker at its next progress call;
- collectable results — the job parks a file or a value for later collection and exits, holding no worker while the record waits.
The store holds the state
Every state change is written to the store before anything is pushed, so a dropped, coalesced or suppressed push never changes what the next read returns. There is no event log, no sequence numbers and no replay: a client reads current state.
One protocol, three implementations
| Implementation | Carries the protocol over | Adapter | Needs |
|---|---|---|---|
| local | the process itself, no serialisation | none | nothing |
| REST | request/response polling | contrib.viewsets, contrib.fastapi, contrib.asgi |
nothing in core |
| WS | one push per envelope down, the six calls up | contrib.muxws |
muxws |
Swapping one for another changes latency only. Both languages ship the protocol and the operating half, so a browser-only application runs operations as well as watching them; the adapters, the Redis store and the Celery entry are Python's, and the polling client and the register are TypeScript's. See Transports.
Install
pip install taskwire # core: no runtime dependencies
pip install "taskwire[redis]" # cross-process store and backplane
pip install "taskwire[fastapi]" # the REST adapter
pip install "taskwire[viewsets]" # the REST API as a fastapi-viewsets viewset
pip install "taskwire[celery]" # the worker entry point
pip install "taskwire[muxws]" # the WebSocket transport
npm install taskwire
The demo
A night batch over one book: four back-office jobs that between them exercise progress, nested
progress, awaitable dialogs, cancellation and collectable results. See demo/README.md.
Run locally
Requirements: Python 3.10+, uv, Node 22+.
git clone https://github.com/velis74/taskwire.git && cd taskwire
uv sync && npm ci
uv run python demo.py # then open http://127.0.0.1:5174
Status
Pre-1.0. The wire format is versioned independently of the package
(Envelope.v), so package semver says nothing about it.
Links
License
MIT. Copyright (c) 2026 Jure Erznožnik.
Metadata
Release files for taskwire 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| taskwire-0.5.4.tar.gz | 92.0 kB | Without provenance | Details for taskwire-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| taskwire-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for taskwire-0.5.4-py3-none-any.whl |
Total release size: 192.8 kB
Release files / taskwire-0.5.4.tar.gz
| Download URL | taskwire-0.5.4.tar.gz |
|---|---|
| Size | 92.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cd63e49a5334e3d407a58f7895a4381d8a1ea0ea79fa6eee183b0c926b1ad9a
|
|
BLAKE2b-256 checksum How to use checksums |
fa1f99b7960c6bf14780e2bc48232e43b674f82ed15e02d13c23dcb70ac8872a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / taskwire-0.5.4-py3-none-any.whl
| Download URL | taskwire-0.5.4-py3-none-any.whl |
|---|---|
| Size | 100.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a8fe29afa931df01193edc34afbd983740354d892e1da1b445e5e21e08e4eb9
|
|
BLAKE2b-256 checksum How to use checksums |
f0bb47ff5a465588bb899cc38b3fcdfa479e125d0c33d8144601a64c57ea20f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for taskwire 0.5.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.