Distributed Task Queue - backed by Kafka
Project description
Kueue
Python Distributed Task Queue - backed by Kafka
Motivation
Kueue was born out of the lack of a library that leverages Kafka for distributed task processing
Features
- simple
- intuitive api
Code Example
import time
from kueue import task
@task(topic="my-topic")
def sleepy_task(sleep: int):
time.sleep(sleep)
return sleep
sleepy_task.enqueue(args=(60))
Installation
pip install kueue
Development
Install poetry and run poetry install
at the root of the repository. This should create a virtual environment with all the necessary python dependencies.
Tests
The test framework makes heavy use of pytest
fixtures in order to spin up full integration environment consisting of a kubernetes cluster using kind and pytest-kind and kafka using strimzi
pytest
License
MIT © Jose Rojas
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
kueue-0.1.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
kueue-0.1.1-py3-none-any.whl
(7.4 kB
view hashes)