lazy-kafka
A tui application to enhance Kafka eco-system devX.
I started this project quite a while ago and haven't really worked on it all that much. There are many, more feature rich and mature projects, so probably you should not use exactly this one. The purpose of this project is to have some fun, not to churn out a project. I am making the repo public, so maybe someone can get inspired/look around 🤷
Features
- tui
- cli
Kafka
- list topics
- display basic topic information
- list messages (experimental)
Kafka connect
- list connectors
- display basic connector information
- display connector status
- monitor connector status (follow)
Schema Registry
- list subjects
- create, delete subjects
- display subject data
Table of Contents
Installation
pip install lazy-kafka
License
lazy-kafka is distributed under the terms of the MIT license.
dev
This project uses uv for dependency/env management
(provided by devenv.nix). A Justfile provides a couple of shortcuts for things
that aren't a single straightforward command (local dev setup, test coverage flags,
release bump) — everything else is just plain uv run ....
run:
- 🐳 docker environment
$ scripts/start-up - 📦 install deps
$ uv sync(or enter the devenv shell, which does this for you) - 🔧 one-time local setup (pre-commit hooks, etc.)
$ just setup - 💾 run the app
$ uv run python src/lazy_kafka/__main__.py - 📃 textual dev console
$ uv run textual console -x EVENT -x SYSTEM --port 7342 - 🧪 run tests with coverage
$ just test - 🔍 type-check
$ uv run mypy src/lazy_kafka tests - 🎨 lint/format
$ uv run ruff check ./$ uv run ruff format .
If you are using pip:
pip install -e .lazy-kafka
check topics: docker exec 1793ae26d162 /bin/kafka-topics --bootstrap-server=localhost:9092
Docker compose
The docker compose will:
- Start a Kafka cluster: 1 broker and 1 zookeeper
- create a test-topic
- Start ConfluentSchemaRegistry
- register a 'test-schema' for the 'test-topic'
- Start LocalStack S3 bucket 'test-bucket'
- Start Kafka Connect
- create a connector to read from test-topic, dump to S3 test-bucket
useful
curl -s -XGET http://localhost:8083/connector-plugins | jq '.[].class'
curl -XGET http://localhost:8083/connectors
Roadmap
v0.1.0
- settings management
- k-connect continuous update (like watch)
- Color the State column based on the value
- Fix currently highlighted connector selection on update
- Load from config file
- [-] Add file watcher - get inspiration from watchdog or toolong
- Expose more configuration (kafka auth related)
v0.2.0
- see messages in a stream
- extend kafka page support: AIOKafka/confluent-kafka library facade
- implementation only with confluent-kafka, but with a facade
- extend kafka page support: AIOKafka/confluent-kafka library facade
- produce messages into a stream
- concrete producer
- dummy producer (agent pool pattern?)
v1.0
Generate client code from openapi
- deprecate confluent-kafka in favor of kafka-rest api
- kakfa-connect -schema-registy
04-28
- kafka consume feature
- kafka consume UI with message table
- CLI
- initial set up
- factor into own module
- consume command to follow topic
- produce command (de-scope e.g.: schemathesis like test data generation)
- tests
- [-] :(
09-15
-
schema listing and browsing x multiple versions of stuff (-> always show the latest) x ** it is cumbersome to go from subject to schema (human exploration) ** ** it is easy to look up
id-> schema (how the messages are serialized) ** 0. request to list subjects- request to
subjects/<subject>/versionsto list versions - request to
subjects/<subjects>/versions/-1to get the latest schema info - request to
schemas/ids/{id}/schema-> can delete schema with a dialog popping up -> The design philosophy is to handle events as close to the source as possible.
- request to
-
create modal screens to create schema, connector, topic (?)
-
create settings management from config file
-
create a screen for settings
-
add delete action
Development
- confluent kafka docs: https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#confluent_kafka.TopicPartition
- detailed example of confluent kafka lib api: https://github.com/confluentinc/confluent-kafka-python/issues/1443
🫛 lazy-kafka ➜ textual console -x EVENT -x SYSTEM --port 7342 🫛 lazy-kafka ➜ python src/lazy_kafka/main.py --help 🫛 lazy-kafka ➜ python src/lazy_kafka/scripts/topic_schema_producer.py 🫛 lazy-kafka ➜textual run --dev --port 7342 src/lazy_kafka/main.py
The app does not handle the case where topics are empty. Produce dummy data with the cli: 🐣 lazy-kafka ➜ python -m lazy_kafka kafka produce -f src/lazy_kafka/default_config.toml test-topic
(optionally also run this:) 🐣 lazy-kafka ❯ python -m lazy_kafka kafka consume -f src/lazy_kafka/default_config.toml test-topic
- built with Mistral :)
Metadata
Release files for lazy-kafka 0.1.0
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 |
|---|---|---|---|---|
| lazy_kafka-0.1.0.tar.gz | 261.9 kB | With provenance | Details for lazy_kafka-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lazy_kafka-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lazy_kafka-0.1.0-py3-none-any.whl |
Total release size: 320.1 kB
Release files / lazy_kafka-0.1.0.tar.gz
| Download URL | lazy_kafka-0.1.0.tar.gz |
|---|---|
| Size | 261.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15a15f29896c836563e00cf682a620da3b9f8704455a66d4ecf68b23ff01dc8f
|
|
BLAKE2b-256 checksum How to use checksums |
bb15c52f6bac2085212cf62e15f964532bdc5b5f4b7b9c83bda8382f5025206b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / lazy_kafka-0.1.0-py3-none-any.whl
| Download URL | lazy_kafka-0.1.0-py3-none-any.whl |
|---|---|
| Size | 58.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b0852b106888cb81edaa826d83d54b3c084be7b3cbe77f2b639675904b71c10
|
|
BLAKE2b-256 checksum How to use checksums |
573343bbe8c832fd32c0013b5d4198987fcadb7de1f0542961f0423f7dc2c95f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for lazy-kafka 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lazy_kafka-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA 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.