Install & Compatibility
Where this runs
tested against v1.2.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 73.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 7.4s · import 0.000s · 134MB
107MB installed
● package 107MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
QueueService
✓ from nsj_queue_lib import QueueService
✗ from nsj_queue_lib import QueueService
Exemplo básico de envio de mensagem e execução de worker.
import os
from nsj_queue_lib import QueueService, Worker
# Exemplo de envio de mensagem
queue = QueueService(
host=os.environ.get('QUEUE_HOST', 'localhost'),
port=os.environ.get('QUEUE_PORT', 5672),
username=os.environ.get('QUEUE_USER', 'guest'),
password=os.environ.get('QUEUE_PASS', 'guest')
)
queue.send('my_queue', {'key': 'value'})
# Exemplo de worker
def process_message(msg):
print(f"Processed: {msg}")
worker = Worker(queue='my_queue', callback=process_message)
worker.start()
Upgrade
Version history
1.2.2latest on PyPI · released Jul 13, 2025
Audit
Dependencies
celeryrequiredUsado internamente para gerenciamento de filas
redisoptionalOpcional, para uso com Redis como broker