Skip to main content

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/:

Metadata

Release files for workerlib 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for workerlib 0.5.1
File Size Uploaded Provenance Actions
workerlib-0.5.1.tar.gz 16.6 kB With provenance Details for workerlib-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for workerlib 0.5.1
File Interpreter ABI Platform Actions
workerlib-0.5.1-py3-none-any.whl Python 3 none any Details for workerlib-0.5.1-py3-none-any.whl

Total release size: 29.0 kB

Release files / workerlib-0.5.1.tar.gz

Download URL workerlib-0.5.1.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9cf82f02547ac884d20035a0da5dfc2b4ca34dfc29b4f01f371e02d7ca619035
BLAKE2b-256 checksum
How to use checksums
4be322ffc59517917da4007984f5e8f26ea713d5aaca2744e6a0fbb7d4787322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Release files / workerlib-0.5.1-py3-none-any.whl

Download URL workerlib-0.5.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cab1da0a887f4cdddaee92f86a9f7439559d48d2d0b8fabef68af0c0f971a5c
BLAKE2b-256 checksum
How to use checksums
7b9a34c28c9401818b82dcec10e2bef08ff848a18f4148c2ccb0c223299a61ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Security for workerlib 0.5.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for workerlib-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page