Explore Azure service bus from command line
Project description
Command line Azure ServiceBus Explorer
Explore Azure Service Bus on command line. You can send, receive, peek message from topic/subscriptions.
Installation
Requires python >= 3.7.4
pip install asb-cli-explorer
Quick start
Send a messge.
export SB_CONN_STR="Endpoint=sb://<full conn string having sender or manage role>"
asb-tour send --conn-str=${SB_CONN_STR} --topic=test-topic --props key1=va1,key2=value2 '{"hello":"world"}'
# using json file
asb-tour send --conn-str=${SB_CONN_STR} --topic=test-topic --props key1=va1,key2=value2 --data-file /path/to/payload_file
Peek/stream messge from a subscription asynchronously forever. Press 'Ctrl+C' to stop.
export SB_CONN_STR="Endpoint=sb://<full conn string having receiver or manage role>"
asb-tour peek --topic test-topic --subscription log --show-user-props --show-system-props
# optionaly pipe it to `jq` to get pretty printing and futher transformations
asb-tour peek --topic test-topic --subscription log --show-user-props --show-system-props | jq
List messages from subscription's dead letter queue (dlq).
export SB_CONN_STR="Endpoint=sb://<full conn string having receiver or manage role>"
asb-tour dlq --topic test-topic --subscription log --show-user-props --show-system-props --count 10
Move/Copy dlq messages to topics
export SB_CONN_STR="Endpoint=sb://<full conn string having receiver or manage role>"
asb-tour dlq --move --topic test-topic --subscription log <message-id>
asb-tour dlq --copy --topic test-topic --subscription log <message-id>
Explore Topics, Subscriptions: Messages & DLQ
You can also explore messages using Terminal User Interface [TUI].
export SB_CONN_STR="Endpoint=sb://<full conn string having manage role>"
asb-tour explore
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asb-cli-explorer-0.1.5.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for asb_cli_explorer-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b309f927d462673aed873d4dcc54e8677697a9da6e8d2406c862da23f8d6bff |
|
MD5 | abd8ff47c5baf38a4e1d66dfb7f93f5f |
|
BLAKE2b-256 | 1f304e0354c17ef1dea3a1d197d4bc2d6b67ab92143f8ae000b63716c0d33b8b |