Skip to main content

Azure Service Bus CLI

azure-servicebus-cli is a simple command-line interface (CLI) tool for interacting with Azure Service Bus Queues. This tool allows you to send and receive messages from an Azure Service Bus Queue using a few straightforward commands.

Installation

To install the azure-servicebus-cli package, use pip:

pip install azure-servicebus-cli

Prerequisites

Before using the CLI tool, make sure you have:

  1. An Azure Service Bus namespace and queue created in your Azure account.
  2. The connection string for your Azure Service Bus. You can obtain this from the Azure portal.

Environment Variable

Set the AZURE_SERVICEBUS_CONNECTION_STRING environment variable with your Service Bus connection string:

export AZURE_SERVICEBUS_CONNECTION_STRING="your-connection-string"

Usage

Sending a Message

You can send a message to a specified queue using the send command. You can directly pass a message or provide a path to a file containing the message content.

Example 1: Send a Message Directly

azsb send --queue <your-queue-name> --message "Your message here"

Example 2: Send a Message from a File

azsb send --queue <your-queue-name> --message /path/to/your/message.json

Receiving Messages

You can receive messages from a specified queue using the receive command. You can also specify the maximum number of messages to receive.

Example 1: Receive a Single Message

azsb receive --queue <your-queue-name>

Example 2: Receive Multiple Messages

azsb receive --queue <your-queue-name> --max-number-of-messages 10

License

This project is licensed under the MIT License.

Metadata

Release files for azure-servicebus-cli 0.1.2

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

Source distribution (sdist)

Source distribution for azure-servicebus-cli 0.1.2
File Size Uploaded Provenance
azure_servicebus_cli-0.1.2.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for azure-servicebus-cli 0.1.2
File Interpreter ABI Platform
azure_servicebus_cli-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / azure_servicebus_cli-0.1.2.tar.gz

Download URL azure_servicebus_cli-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a9a9780c204804490c17c638e3bcc55c92199339e55154320c634ddc8b8f04ad
BLAKE2b-256 checksum
How to use checksums
ff9aa8711532794c744b4952f93441c2f12c728ab3c8243dd6cda704b23c1bd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / azure_servicebus_cli-0.1.2-py3-none-any.whl

Download URL azure_servicebus_cli-0.1.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3b8aca12e3811bc20a7f5d97cb9d2416bcc183af54be12a7f0803e8473b7198
BLAKE2b-256 checksum
How to use checksums
dc3e3d04c1e43d57c92c535cdf56e20b856949897ed38a7c7e3dc8d4725255ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for azure-servicebus-cli 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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