Skip to main content

A command-line tool for publishing messages to RabbitMQ

Project description

A small command-line tool that adheres to the Unix philospohy for publishing messages to RabbitMQ.

rabbitstew takes input from stdin and publishes a message per line received. You can customize the exchange and routing key used, along with message properties. Additionally, you can enable publisher confirmations if desired.

Version Downloads Status License

Installation

rabbitstew is available from the Python Package Index and can be installed via pip or easy_install.

Usage Example

cat /var/log/messages | rabbitstew -H rabbit-server -r syslog.messages

CLI Options

usage: rabbitstew [-h] [-H HOST] [-p PORT] [-s] [-v VHOST] [-u USER]
                  [-P PASSWORD] [-W] [-e EXCHANGE] [-r ROUTING_KEY] [-c]
                  [--add-user] [--app-id APP_ID] [--auto-id]
                  [--content-type VALUE] [--type TYPE] [-V] [--version]

RabbitMQ message publisher

optional arguments:
  -h, --help            show this help message and exit
  -H HOST               Server hostname (default: localhost)
  -p PORT               Server port (default: 5672)
  -s                    Use SSL to connect (default: False)
  -v VHOST              Server virtual host (default: /)
  -u USER               Server username (default: guest)
  -P PASSWORD           Server password (default: guest)
  -W                    Prompt for password (default: False)
  -f PATH               Read password from a file (default: None)
  -e EXCHANGE           Exchange to publish to (default: None)
  -r ROUTING_KEY        Routing Key to use (default: None)
  -c                    Confirm delivery of each message, exiting if a message
                        delivery could not be confirmed (default: False)
  --add-user            Include the user in the message properties (default: False)
  --app-id APP_ID       Specify the app-id property of the message (default: rabbitstew)
  --auto-id             Create a unique message ID for each message (default: False)
  --content-type VALUE  Specify the content type of the message (default: None)
  --type TYPE           Specify the message type (default: None)
  -V                    Verbose output (default: False)
  --version             show program's version number and exit

Version History

  • 0.1.0 - released 2015-02-02
    • Initial Release

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

rabbitstew-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

rabbitstew-0.1.0-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rabbitstew-0.1.0.tar.gz.

File metadata

  • Download URL: rabbitstew-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rabbitstew-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3cc69d8c75983cfcc67106a348f8a9215f15e191704ca81d251e1bf0871181d6
MD5 2d898dfbcc0cae4960ba59e030f4815c
BLAKE2b-256 58ae33c5be2785de87497955904810f635c14a2aca7ee558c0bdfce1c0156d1f

See more details on using hashes here.

File details

Details for the file rabbitstew-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rabbitstew-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7bc5162459be1c0545a4f06455d1f92994386d56bd6b60df1260a559d8c5f570
MD5 ccc5f6db7c304257a709f4ed8255a90f
BLAKE2b-256 e865c8225b9a9d30c88e1c7917b4b7c28994e99a51d9ccdd5787df6c557c67ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page