Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pushq (Python)

Client for pushq — a self-hosted HTTP push task queue (open-source alternative to GCP Cloud Tasks). Tasks are delivered as HTTP requests to your endpoints with per-queue rate limits, concurrency caps, and Cloud Tasks-compatible retry semantics.

pip install pushq

Enqueue

from pushq import Pushq, RateLimits, Retry, Target

pq = Pushq(api_key="pq_...")  # hosted API at https://api.pushqueue.dev
# Self-hosting? Pushq("http://localhost:8080", api_key="pq_...")

# Queues are created/updated at runtime — idempotent, safe to call on every enqueue.
pq.upsert_queue(
    "account-42",
    rate_limits=RateLimits(max_dispatches_per_second=10, max_concurrent_dispatches=5),
    target=Target(base_url="https://api.example.com",
                  signing_secret="whsec_..."),      # omit to keep the stored secret
)

pq.create_task(
    "account-42",
    path="/hooks/send-message",        # resolved against the queue's base_url
    json_body={"user_id": 1},
    delay_seconds=3600,                # or schedule_time=datetime(...)
    task_id="follow_up_abc",           # optional: dedup (409 on collision)
    retry=Retry(max_attempts=3),       # per-task override of the queue config
)

# Operate queues at runtime
pq.pause_queue("account-42")
pq.resume_queue("account-42")
pq.purge_queue("account-42")
stats = pq.queue_stats("account-42", id_prefix="follow_up_")
print(stats.pending, stats.errors_last_1h)

AsyncPushq mirrors the same surface with async/await.

Verify deliveries (FastAPI)

pushq signs deliveries using the Standard Webhooks scheme (webhook-id, webhook-timestamp, webhook-signature headers).

from fastapi import FastAPI, HTTPException, Request
from pushq import verify_signature, WebhookVerificationError

app = FastAPI()

@app.post("/hooks/send-message")
async def send_message(request: Request):
    body = await request.body()
    try:
        # Returns "queue/task_id" — stable across retries, use it as an idempotency key.
        msg_id = verify_signature("whsec_...", request.headers, body)
    except WebhookVerificationError:
        raise HTTPException(status_code=401)
    ...

Errors raise PushqError with .status, .code (already_exists, not_found, failed_precondition, …), and .detail.

Metadata

Release files for pushq 0.1.0b8

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

Source distribution (sdist)

Source distribution for pushq 0.1.0b8
File Size Uploaded Provenance Actions
pushq-0.1.0b8.tar.gz 11.4 kB With provenance Details for pushq-0.1.0b8.tar.gz

Built distribution (wheel)

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

Total release size: 22.7 kB

Release files / pushq-0.1.0b8.tar.gz

Download URL pushq-0.1.0b8.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c503d9e2bbe3d502f6094ca093d8060699596c02ad93d74a7c2037e68059ffc8
BLAKE2b-256 checksum
How to use checksums
b40de0437326edf730c462932acabd8c80868d017588d2f6c056e0be3e7f207d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Release files / pushq-0.1.0b8-py3-none-any.whl

Download URL pushq-0.1.0b8-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51165839d8bfb93531fdc47c8d59500fc5b934a7e90937d664360899c04e5de3
BLAKE2b-256 checksum
How to use checksums
ecb60224e4c9f4ebb931f8d2c01b3098f95228e47e79cfd9e7f124f203fa1639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Security for pushq 0.1.0b8

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 pushq-0.1.0b8.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 Nov 27, 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