Modern task queue framework
Project description
Colas
A modern, minimalist task queue framework.
- fully async
- supports database backends for queues
- no crazy inventions for task discovery, logging or configuration
Supported backends:
- Sqlite
- Postgres
Author: Igor Prochazka (@projazzka)
Installation
pip install colas
Usage
# tasks.py
from colas import Colas
app = Colas("sqlite://./colas.db")
@app.task
async def multiply(a: int, b: int) -> int:
return a * b
if __name__ == "__main__":
app.run() # starts the worker
On the client side simply call the registered tasks.
# main.py
from tasks import multiply
result = await multiply(2, 3) # enqueues the tasks and waits for the response
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colas-0.1.2.tar.gz
(29.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
colas-0.1.2-py3-none-any.whl
(6.9 kB
view details)
File details
Details for the file colas-0.1.2.tar.gz.
File metadata
- Download URL: colas-0.1.2.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
733d60c2b4047512baaa2a02666ed4d656b487e436fd87a52dda6e695fe7caa0
|
|
| MD5 |
a6c6016db6f66f3d278b917b07dc6137
|
|
| BLAKE2b-256 |
308d42509076caa21e58b0ed25a2fc4aee7d9c9fd9fd742936f5e834c8bf6b6e
|
File details
Details for the file colas-0.1.2-py3-none-any.whl.
File metadata
- Download URL: colas-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3ccda6a661da65c50910a05c59c73f9cd25e7cc82ccc52f1a0b76559470e172
|
|
| MD5 |
11aff23ed3e37a958733c7da08c12524
|
|
| BLAKE2b-256 |
09db6541b90ebc8bec078d239d161d88a40219083c4733ad96ea9899f646307e
|