Async RabbitMQ worker utilities
Project description
WorkerLib
Асинхронные утилиты для работы с RabbitMQ: пул воркеров, очереди, retry, DLQ, вебхуки. Основа — aio-pika.
Установка
pip install workerlib
Python 3.10+.
Минимальный пример
import asyncio
from workerlib import WorkerPool
async def task_handler(data: dict) -> bool:
print(data)
return True
async def main():
async with WorkerPool() as pool:
pool.add_worker("tasks", task_handler)
await pool.send("tasks", {"id": 1})
asyncio.run(main())
Документация
Полное описание, конфигурация, обработка ошибок, метрики, вебхуки и интеграция с FastAPI — в каталоге docs/:
- Обзор и навигация
- Быстрый старт
- Руководство (конфигурация, ошибки, метрики, вебхуки, FastAPI)
- Справочник API
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
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
File details
Details for the file workerlib-0.4.6.tar.gz.
File metadata
- Download URL: workerlib-0.4.6.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd5544524110fc13277a975994885154e54d4cf320c3b37f59953c58b53d2022
|
|
| MD5 |
3d955135a3aa04a63e55f9f44c9e1385
|
|
| BLAKE2b-256 |
c46dd300a4941325e03f14647e17afd7cfd5478928f6a798ff5cb6357bd3d624
|
Provenance
The following attestation bundles were made for workerlib-0.4.6.tar.gz:
Publisher:
publish.yml on ametist-dev/workerlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
workerlib-0.4.6.tar.gz -
Subject digest:
fd5544524110fc13277a975994885154e54d4cf320c3b37f59953c58b53d2022 - Sigstore transparency entry: 1180282413
- Sigstore integration time:
-
Permalink:
ametist-dev/workerlib@14b6339a6cf273af7d8f8cf8a900e41df4eb37d4 -
Branch / Tag:
refs/tags/0.4.6 - Owner: https://github.com/ametist-dev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@14b6339a6cf273af7d8f8cf8a900e41df4eb37d4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file workerlib-0.4.6-py3-none-any.whl.
File metadata
- Download URL: workerlib-0.4.6-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cefe45e21f0586c5332958be5c9350a439061c55f10c8970d54b98db644dd5d
|
|
| MD5 |
95c97c4e534f36c745d3005fda8dc5d2
|
|
| BLAKE2b-256 |
cba95e1853fed431169cdbc8d42c32f719262014f97c0a6a04e6d72f1630b249
|
Provenance
The following attestation bundles were made for workerlib-0.4.6-py3-none-any.whl:
Publisher:
publish.yml on ametist-dev/workerlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
workerlib-0.4.6-py3-none-any.whl -
Subject digest:
8cefe45e21f0586c5332958be5c9350a439061c55f10c8970d54b98db644dd5d - Sigstore transparency entry: 1180282438
- Sigstore integration time:
-
Permalink:
ametist-dev/workerlib@14b6339a6cf273af7d8f8cf8a900e41df4eb37d4 -
Branch / Tag:
refs/tags/0.4.6 - Owner: https://github.com/ametist-dev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@14b6339a6cf273af7d8f8cf8a900e41df4eb37d4 -
Trigger Event:
release
-
Statement type: