azure-servicebus
Microsoft Azure Service Bus Client Library for Python
Decision gist · record as of 2026-08-14
Yes. Azure Service Bus is a production-stable (Development Status 5), actively maintained library with no known vulnerabilities, low install friction, and broad Python version support (3.9–3.13). Install it if you need to integrate with Azure's messaging service or build distributed, asynchronous messaging patterns on Azure. The main gotcha is that it requires an Azure subscription and Service Bus namespace to be useful, and concurrent use requires explicit thread/coroutine safety management.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an Azure subscription, Service Bus namespace, and valid connection string or Azure Active Directory credentials.
- Python 3.9 or later.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
(unclear)
last release 2025-10-31 (287 days) · last repo commit 2026-08-14 · 5,587 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 23,333,818 downloads/mo, #950 on PyPI
Alternatives
Verify before relying
pip install azure-servicebus
from azure.servicebus import ServiceBusClient, ServiceBusMessage
client = ServiceBusClient.from_connection_string(conn_str)
with client:
sender = client.get_queue_sender(queue_name)
sender.send_messages(ServiceBusMessage("Hello Service Bus"))- Whether the package includes built-in support for message batching, dead-letter handling, and session management as described, or if these require additional configuration.
- Performance characteristics and throughput limits for typical workloads.
- Compatibility with specific Azure authentication methods beyond connection strings and TokenCredential.
What it is and what it does
Azure Service Bus is a Python client library for Azure's cloud-managed messaging service. It provides high-performance, fault-tolerant communication between distributed applications through queues (point-to-point), topics (publish/subscribe), and subscriptions. The library lets you create and manage Service Bus resources, send and receive messages, and implement complex messaging patterns using message locks, sessions, and dead-letter functionality.
The package requires Python 3.9 or later and depends on azure-core for authentication and HTTP transport, isodate for timestamp handling, and typing-extensions for type hints. It supports both synchronous and asynchronous APIs (async requires aiohttp or similar transport). Authentication is typically via connection string or Azure Active Directory credentials through the azure-identity package. The library is not thread-safe or coroutine-safe by design, so concurrent access requires explicit synchronization.
Use it for
- Implement point-to-point messaging between microservices using queues for reliable task distribution.
- Build publish/subscribe event systems where multiple subscribers receive independent copies of published messages.
- Create asynchronous job processing pipelines with message batching and dead-letter handling for failed items.
- Integrate on-premises applications with cloud services using Service Bus as a reliable message broker.
- Implement session-based workflows where related messages are processed together with guaranteed ordering.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Azure Service Bus is a production-stable (Development Status 5), actively maintained library with no known vulnerabilities, low install friction, and broad Python version support (3.9–3.13). Install it if you need to integrate with Azure's messaging service or build distributed, asynchronous messaging patterns on Azure. The main gotcha is that it requires an Azure subscription and Service Bus namespace to be useful, and concurrent use requires explicit thread/coroutine safety management.
Install
azure-servicebus on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent releases; last commit 2026-08-14 and 287 days since last release. Depends on three stable runtime packages: azure-core, isodate, and typing-extensions.
Requires an Azure subscription, Service Bus namespace, and valid connection string or Azure Active Directory credentials. Python 3.9 or later.
Quickstart
pip install azure-servicebus
from azure.servicebus import ServiceBusClient, ServiceBusMessage
client = ServiceBusClient.from_connection_string(conn_str)
with client:
sender = client.get_queue_sender(queue_name)
sender.send_messages(ServiceBusMessage("Hello Service Bus"))
Verify before relying
- Whether the package includes built-in support for message batching, dead-letter handling, and session management as described, or if these require additional configuration.
- Performance characteristics and throughput limits for typical workloads.
- Compatibility with specific Azure authentication methods beyond connection strings and TokenCredential.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesazure-coreisodatetyping-extensions |
| Maintenance | Actively maintained 287 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 23,333,818 / month, #950 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/StableProgramming 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.9 |
Evidence: azure_servicebus-7.14.3-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 › “azure service bus messaging”
- azure-servicebusAzure Service Bus client library for Python that enables sending and…
- azure-mgmt-servicebusManages Azure Service Bus resources (namespaces, queues, topics,…
- uamqpuAMQP is an AMQP 1.0 client library for Python that enables…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also azure-eventgrid · azure-storage-queue · uamqp · azure-eventhub · azure-mgmt-servicebus · ovos-bus-client · ibmmq · thespian · azure-messaging-webpubsubservice · azure-communication-email