bridgeq (Python)
bridgeq is a Rust-powered queue toolkit for Python.
Install
pip install bridgeq
Quickstart
from bridgeq import BridgeQueue
queue = BridgeQueue(max_retries=2, visibility_timeout_ms=30_000, retry_backoff_ms=500)
job_id = queue.enqueue("send-email:user-42")
batch = queue.dequeue(10)
for message in batch:
print(message.id, message.payload, message.attempts)
queue.heartbeat(message.id) # renew lease while processing
queue.extend_lease(message.id, 1_000) # add 1s extra lease window
queue.ack(message.id)
stats = queue.stats()
print(stats.ready, stats.delayed, stats.in_flight, stats.dead_letter)
Adapter Selection
from bridgeq import BridgeQueue
memory = BridgeQueue(adapter="memory")
redis = BridgeQueue(adapter="redis", connection_url="redis://127.0.0.1/", namespace="jobs")
postgres = BridgeQueue.postgres("postgres://postgres@127.0.0.1/postgres", namespace="jobs")
memory.enqueue("job-memory")
redis.enqueue("job-redis")
postgres.enqueue("job-postgres")
Release files for bridgeq 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bridgeq-0.1.18.tar.gz | 67.8 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| bridgeq-0.1.18-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| bridgeq-0.1.18-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| bridgeq-0.1.18-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| bridgeq-0.1.18-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 6.4 MB
Release files / bridgeq-0.1.18.tar.gz
| Download URL | bridgeq-0.1.18.tar.gz |
|---|---|
| Size | 67.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ba28ead26fc58b6223d11a0d38fe54391fa170fdbb582b3a253d3310c367cdc
|
|
BLAKE2b-256 checksum How to use checksums |
60e7cb6e1c3a521baaf60adcfb403b5f51c5213ebbf6b6482e627195a5ddf3fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / bridgeq-0.1.18-cp38-abi3-win_amd64.whl
| Download URL | bridgeq-0.1.18-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
221f860a797a23a72c3a63c0447c6e7f219f75d9e58d99154e632a203ce2709d
|
|
BLAKE2b-256 checksum How to use checksums |
4de4776eefde7836856d0da5ca58061a1708a0034eb0aa350c0ae00cfaa8b6a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / bridgeq-0.1.18-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | bridgeq-0.1.18-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cb1a069cc48dc8510428fa4662acca3bb578cb352a854089632444c38e4bb55d
|
|
BLAKE2b-256 checksum How to use checksums |
b38ecc2a0c3937cee5988b137593b673903adae739840cf1fcf5996917bd89f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / bridgeq-0.1.18-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | bridgeq-0.1.18-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7125aa3f4e8cd16ea87fac7ee65644574387d6b63f8f356aa9060097862c567a
|
|
BLAKE2b-256 checksum How to use checksums |
4508d242dbd4e7523e51025bdf96d71945307fcbc5c6f4f201b0ac6a43b34d1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / bridgeq-0.1.18-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | bridgeq-0.1.18-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
547dd3850ffbd103f049d431ef2b559158674900d1b6c35f768bc516801213f8
|
|
BLAKE2b-256 checksum How to use checksums |
491e6258e5baa9f789040a09fb1afe9099eeac53c56b4676c08a4e59d5a1a89c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|