Skip to main content

A magical kafka command line interface.

Project description

Kafkaescli Coverage Status CircleCI Join the chat at https://gitter.im/jonykalavera/kafkaescli

Install

Install from pypi

pip install kafkaescli

Usage

# consume from `hello`
kafkaescli consume hello
# consume from `hello` showing metadata
kafkaescli consume hello --metadata
# produce topic `hello`
kafkaescli produce hello world
# produce longer strings
kafkaescli produce hello "world of kafka"
# produce from stdin a value per line
cat values.json | kafkaescli produce hello --stdin
# produce to topic `world` form the output of a consumer of topic `hello`
kafkaescli consume hello | kafkaescli produce world --stdin
# produce `{"foo":"bar"}` to topic `hello`, with middleware
kafkaescli produce hello '{"foo":"bar"}' --middleware '{"hook_before_produce": "examples.json.hook_before_produce"}'
# consume from topic `hello` with middleware
kafkaescli consume hello --middleware '{"hook_after_consume": "examples.json.hook_after_consume"}'
# run the web api http://localhost:8000/docs
kafkaescli runserver
# POST consumed values to WEBHOOK
kafkaescli consume hello --metadata --webhook https://myendpoint.example.com
# For more details see
kafkaescli --help

These examples assume a Kafka instance is running at localhost:9092

Contributions

Pull-requests are welcome and will be processed on a best-effort basis. Follow the contributing guide.

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

kafkaescli-0.1.11.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

kafkaescli-0.1.11-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file kafkaescli-0.1.11.tar.gz.

File metadata

  • Download URL: kafkaescli-0.1.11.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.13.0-1021-aws

File hashes

Hashes for kafkaescli-0.1.11.tar.gz
Algorithm Hash digest
SHA256 22701c10f463da7c92718e249e247c7e3fd3100e129b2cda4e4d249875053bc3
MD5 aff43b631f3e0ecdb9f58e179f525c02
BLAKE2b-256 b2b87304eda9e7bc4927e0beb2fecca8408e187e1bae09b11e7c9ee1e87a4647

See more details on using hashes here.

File details

Details for the file kafkaescli-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: kafkaescli-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.13.0-1021-aws

File hashes

Hashes for kafkaescli-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4dcc7e048f5cff8229b307e18d7d56cdf3b5db3140e7ecc6434cb62ca3ef31d9
MD5 cd6e5588ddb1b17bece6cc05b6cd450a
BLAKE2b-256 60065a737b3a5a6494b98fc1d19f3d18c7d99b07afe9fff0c4c438f621169c28

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