qstash
Python SDK for Upstash QStash
Decision gist · record as of 2026-08-14
Yes, if you are building on Upstash's infrastructure or need a managed message queue for serverless workloads. The package is actively maintained, has low install friction, carries a permissive MIT license, and has no known vulnerabilities. It is production-ready (GA status) and suitable for applications that rely on QStash for messaging and scheduling.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid QStash token from the Upstash Console (https://console.upstash.com/qstash) to authenticate API calls.
- Low install friction with only two runtime dependencies (httpx and pyjwt).
- Actively maintained with recent releases; marked as GA and covered by Upstash Professional Support.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2026-03-18 (149 days) · last repo commit 2026-03-18 · 27 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 281,149 downloads/mo, #8,105 on PyPI
Alternatives
Verify before relying
pip install qstash
from qstash import QStash
client = QStash("<QSTASH_TOKEN>")
res = client.message.publish_json(
url="https://example.com",
body={"hello": "world"},
)
print(res.message_id)- Whether the package handles automatic retries for failed message deliveries to endpoints
- Whether LLM provider integrations beyond OpenAI are supported
- Performance characteristics under high message volume
What it is and what it does
QStash is a Python client for Upstash's HTTP-based message queue and scheduling service. It lets you publish messages to HTTP endpoints, schedule recurring or delayed tasks using cron expressions, and verify incoming webhook signatures from QStash. The SDK wraps HTTP calls to the QStash API and provides convenience methods for common operations like publishing JSON payloads, creating schedules, and receiving authenticated messages.
Typically used in serverless environments (AWS Lambda, Vercel Functions, etc.) where you need to queue work, schedule background jobs, or coordinate between services without managing your own message broker. It depends on httpx for HTTP requests and pyjwt for signature verification, and supports Python 3.8 through 3.13.
Use it for
- Queue HTTP requests to be delivered with retry logic and scheduling in serverless functions
- Schedule recurring tasks using cron expressions without a persistent scheduler
- Verify and process webhook callbacks from QStash in your application handlers
- Publish messages to LLM APIs (e.g., OpenAI) with callback handling for results
- Implement delayed task execution with configurable backoff and retry strategies
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on Upstash's infrastructure or need a managed message queue for serverless workloads.
The package is actively maintained, has low install friction, carries a permissive MIT license, and has no known vulnerabilities. It is production-ready (GA status) and suitable for applications that rely on QStash for messaging and scheduling.
Install
qstash on PyPI
Before you install
Low install friction with only two runtime dependencies (httpx and pyjwt). Actively maintained with recent releases; marked as GA and covered by Upstash Professional Support.
Requires a valid QStash token from the Upstash Console (https://console.upstash.com/qstash) to authenticate API calls.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install qstash
from qstash import QStash
client = QStash("<QSTASH_TOKEN>")
res = client.message.publish_json(
url="https://example.com",
body={"hello": "world"},
)
print(res.message_id)
Verify before relying
- Whether the package handles automatic retries for failed message deliveries to endpoints
- Whether LLM provider integrations beyond OpenAI are supported
- Performance characteristics under high message volume
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageshttpxpyjwt |
| Maintenance | Actively maintained 149 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 281,149 / month, #8,105 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: DatabaseTopic :: Database :: Front-EndsTopic :: Software Development :: Libraries |
Evidence: qstash-3.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “serverless message queue”
- qstashPython SDK for publishing and receiving messages through Upstash…
- aws-cdk.aws-sqsProvides AWS CDK constructs for defining Amazon SQS queues and…
- redis-simple-mqA lightweight message queue built on Redis that provides a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also upstash-redis · upstash-vector · upstash-ratelimit · hatchet-sdk · rq-scheduler · slixmpp · clx-sdk-xms · azure-servicebus · saq · celery