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.
Metadata
Release files for kafkaescli 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kafkaescli-0.1.11.tar.gz | 13.6 kB | Without provenance | Details for kafkaescli-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kafkaescli-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for kafkaescli-0.1.11-py3-none-any.whl |
Total release size: 33.2 kB
Release files / kafkaescli-0.1.11.tar.gz
| Download URL | kafkaescli-0.1.11.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22701c10f463da7c92718e249e247c7e3fd3100e129b2cda4e4d249875053bc3
|
|
BLAKE2b-256 checksum How to use checksums |
b2b87304eda9e7bc4927e0beb2fecca8408e187e1bae09b11e7c9ee1e87a4647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.4 Linux/5.13.0-1021-aws
|
Release files / kafkaescli-0.1.11-py3-none-any.whl
| Download URL | kafkaescli-0.1.11-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dcc7e048f5cff8229b307e18d7d56cdf3b5db3140e7ecc6434cb62ca3ef31d9
|
|
BLAKE2b-256 checksum How to use checksums |
60065a737b3a5a6494b98fc1d19f3d18c7d99b07afe9fff0c4c438f621169c28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.4 Linux/5.13.0-1021-aws
|
Security for kafkaescli 0.1.11
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.