This release is a pre-release and may not be stable for production use.
Task Lattice
Distributed Task Framework for distributing work across workers
🚀 Key Features
Task Lattice's key features include:
- Broker Support - Following brokers are supported:
- Solace
- Kafka (Day 2)
- Queues - Multiple queue/priority queue support
- Async - Async tasks supported incl. execution in event loop
- Customisation - Extensive customisation of queue, worker and tasks including:
- Automated task retry
- Dead letter queues
- Worker concurrency
- Queue capacity
- ...
- Minimal code - Minimal code is required to use task lattice in your project
- DAG support - Supports DAG (directed acyclical graph) workflow execution
- Monitoring - Supports live monitoring of the queues, workers, tasks
ℹ️ Installation
# Using pip
pip install task-lattice
# Using poetry
poetry add task-lattice
# Using uv
uv add task-lattice
📦 Dependencies
This project's dependencies are based on the broker used. They are minimal by design.
Solace:
📘 How to use
Step 1 - Define your Task Lattice application
from task_lattice import TaskLattice, SolaceConnectionDetails, QueueDetails
app = TaskLattice(
SolaceConnectionDetails(host="localhost", port=55555, vpn="default", username="admin", password="admin"),
TaskLatticeConfig(
queues=[
QueueConfig(name="default", topic="tasks.default"),
],
default_queue="default"
),
)
Step 2 - Define your tasks:
@app.task
def sync_function():
...
@app.task
async def async_function():
...
Step 3 - Enqueue a task:
task = sync_function.create()
app.enqueue(task)
Step 4 - Run a worker to process tasks:
app.start_worker()
📘 Logging
Task Lattice uses the "task-lattice" logger. There are informational logs and also debugging logs.
ℹ️ License
This project is licensed under the terms of the MIT license.
Metadata
Release files for task-lattice 0.0.1a2
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 |
|---|---|---|---|---|
| task_lattice-0.0.1a2.tar.gz | 6.6 kB | Without provenance | Details for task_lattice-0.0.1a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| task_lattice-0.0.1a2-py3-none-any.whl | Python 3 | none | any | Details for task_lattice-0.0.1a2-py3-none-any.whl |
Total release size: 16.0 kB
Release files / task_lattice-0.0.1a2.tar.gz
| Download URL | task_lattice-0.0.1a2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5b0f852592e437bad88b6d48bef6680a9846a2c5b2a7e8e9ff62587a0cbc804
|
|
BLAKE2b-256 checksum How to use checksums |
31929249654f50ca66749e68405c6b083f3e4e160c141d41c20a12bf8a2280c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / task_lattice-0.0.1a2-py3-none-any.whl
| Download URL | task_lattice-0.0.1a2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
120942c66850678d5edffaa46b1297b5a3cee25f319a5bca387e7748aed89e12
|
|
BLAKE2b-256 checksum How to use checksums |
b95064277bc2b3645543ce7b552149b8eff00f3f6b0cc8cfc9a25525c7e910aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for task-lattice 0.0.1a2
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.