Skip to main content

Multi broker watcher tool that connect them with UNIX pipes. BUS Message watcher for OpenAPI Generator Project

Project description


Powerful Pipes Watcher - Multi-broker watcher tool with the power of UNIX Pipes


License Pypi Versions

Logo

Index

In a nutshell Powerful Pipes Watcher is a multi broker watcher tool that connect them with UNIX pipes.

Install

> pip install powerful-pipes-watch-bus 

Quick Start

WatchBus

Powerful Pipes Watcher read from a broker queue and re-send received data to the UNIX pipeline.

Example

> watch-bus -c redis:// -q my-queue 

Above command will connect to the localhost Redis at default port, at database number 1, and will listen for my-queue queue.

Example with multiple queues

> watch-bus -c redis:// -q my-queue -q second-queue 

With this command watch-bus will listen from two queues events.

SendBus

Powerful Pipes SendBus read from stdin and re-send received JSON data to the Broker queue(s).

Example

> cat data.json | send-bus -c redis:// -q my-queue 

Above command will connect to the localhost Redis at default port, at database number 1, and will listen for my-queue queue.

Example with multiple queues

> cat data.json | send-bus -c redis:// -q my-queue -q second-queue 

With this command sendBus will send data to two broker queues.

Supported brokers

Currently, supported brokers are:

  • Redis Pub/Sub
  • Redis Streams
  • Redis simple Queue listener

We'll be happy if you want to contribute adding new brokers! :)

Redis examples

Redis Simple Queue Listener

Bus connections for Redis should look like:

redis://[[user]:[password]@][host][:port][/?db=INTEGER][&queue=STRING]]

Default values:

  • user: Null
  • password: Null
  • Host: 127.0.0.1
  • port: 6379
  • db: 1
  • queue: default

Redis Pub / Sub

Bus connections for Redis should look like:

redis+pubsub://[[user]:[password]@][host][:port][/?[db=INTEGER][&channel=STRING]]

channel is the pub/sub channel to listen for.

Default values:

  • user: Null
  • password: Null
  • Host: 127.0.0.1
  • port: 6379
  • db: 1
  • channel: default

Redis Streams

Bus connections for Redis should look like:

redis+streams://[[user]:[password]@][host][:port]/?stream=STRING[&db=INTEGER][&group=STRING][&consumer=STRING][&timeout=INTEGER][&batch_size=INTEGER]

This mode can works as a consumer or as a producer, depending on the parameters.

Consumer

If you want to use the Redis Streams as a consumer, you should specify the group and consumer parameters.

Producer

If you want to use the Redis Streams as a producer, you should specify ONLY the stream parameter.

Mandatory parameters

  • stream: The stream name to listen for.

Default values:

  • user: Null
  • password: Null
  • Host: 127.0.0.1
  • port: 6379
  • db: 1
  • consumer: "auto" (will be generated automatically)

Authors

Powerful Pipes was made by 42Crunch Research Team:

License

Powerful Pipes is Open Source and available under the AGPLv3+.

Contributions

Contributions are very welcome. See CONTRIBUTING.md or skim existing tickets to see where you could help out.

Acknowledgements

Project logo thanks to Camera control vector created by upklyak.

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

powerful-pipes-watch-bus-1.0.5.tar.gz (20.9 kB view details)

Uploaded Source

File details

Details for the file powerful-pipes-watch-bus-1.0.5.tar.gz.

File metadata

File hashes

Hashes for powerful-pipes-watch-bus-1.0.5.tar.gz
Algorithm Hash digest
SHA256 9be0a529ab8399552c2610e8ca3cabc4cae7147e9b1dca2b01ed7dba092d4053
MD5 e94b05fd4b56e39df4056a66f8a53bd1
BLAKE2b-256 ce9f5fb4771269fc0a61fbee7df70eab835dd063f253e12dd684ce84c0207afa

See more details on using hashes here.

Supported by

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