Skip to main content

kaskade is a terminal user interface for kafka

Project description

kaskade

GitHub GitHub GitHub MIT License GitHub Workflow Status Codecov Pre-commit
Python Version Python Versions Dependencies Platform Code Style
Docker Docker Image Version (latest by date) Docker Image Size (latest by date)
Kafka Kafka Kafka Client

kaskade is a tui (terminal user interface) for kafka. It is built on textual tui framework and rich lib.

For a local kafka environment go to https://github.com/sauljabin/kafka-docker.

NOTE: This project is currently a work in progress, but usable by early adopters. textual is also a work in progress project.

Table of Contents

Installation and Usage

Install with pip:

pip install kaskade

pip will install kaskade and kskd aliases.

Upgrade with pip:

pip install --upgrade kaskade

Help:

kaskade --help

Version:

kaskade --version

Run without config file (it'll take any of kaskade.yml, kaskade.yaml, config.yml or config.yaml):

kaskade

Run with config file:

kaskade my-file.yml

Running with Docker

Using docker (remember to set a network and volume):

docker run --rm -it --network kafka-sandbox_network \
--volume $(pwd):/kaskade \
sauljabin/kaskade:latest

Aliases:

alias kaskade='docker run --rm -it --network kafka-sandbox_network \
--volume $(pwd):/kaskade \
sauljabin/kaskade:latest'

alias kskd=kaskade

These aliases will mount the current directory as a volume.

Configuration

A default yaml configuration file name can be either kaskade.yml , kaskade.yaml, config.yml or config.yaml. It supports all the configuration on kafka consumer configuration page.

Simple connection example:

kafka:
  bootstrap.servers: localhost:9093

SSL encryption example:

kafka:
  bootstrap.servers: kafka:9092
  security.protocol: SSL
  ssl.truststore.location: {{path}}/truststore.jks
  ssl.truststore.password: {{password}}

SSL auth example:

kafka:
  bootstrap.servers: kafka:9092
  security.protocol: SSL
  ssl.truststore.location: {{path}}/truststore.jks
  ssl.truststore.password: {{password}}
  ssl.keystore.location: {{path}}/keystore.jks
  ssl.keystore.password: {{password}}
  ssl.key.password: {{password}}

Support for env variables:

kafka:
  bootstrap.servers: ${BOOTSTRAP_SERVERS}

Screenshots

kaskade

kaskade

Alternatives

To Do

  • Consumed messages table
  • Consumer group lag
  • Interactive search and filters
  • Topic size and count
  • Schema registry support
  • Increment test coverage

Development

Installing poetry:

pip install poetry

Installing development dependencies:

poetry install

Installing pre-commit hooks:

poetry run pre-commit install

Running kaskade:

poetry run kaskade

Scripts

Running unit tests:

poetry run python -m scripts.tests

Running multi-version tests (versions):

poetry run python -m scripts.multi-version-tests

Applying code styles:

poetry run python -m scripts.styles

Running code analysis:

poetry run python -m scripts.analyze

Running code coverage:

poetry run python -m scripts.tests-coverage

Running pre-commit hooks:

poetry run python -m scripts.pre-commit

Generate readme banner:

poetry run python -m scripts.banner

Docker

Build docker:

poetry run python -m scripts.docker-build

Image tag sauljabin/kaskade:latest.

Run with docker (create a config.yml file):

docker run --rm -it --network kafka-sandbox_network \
--volume $(pwd):/kaskade \
sauljabin/kaskade:latest

Bumping Version

Help:

poetry run python -m scripts.release --help

More info at https://python-poetry.org/docs/cli/#version and https://semver.org/.

Upgrade (major.minor.patch):

poetry run python -m scripts.release patch

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

kaskade-0.2.7.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

kaskade-0.2.7-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file kaskade-0.2.7.tar.gz.

File metadata

  • Download URL: kaskade-0.2.7.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for kaskade-0.2.7.tar.gz
Algorithm Hash digest
SHA256 96c16aa1b3755434db6520c4d54e31dc5a8fedad38b9b37afa2b5dffab949a43
MD5 14df9385d68deab4c21575a264bb4a6c
BLAKE2b-256 7f74e3929a88ddf8a3299cfced5cf1eda605afbab5652b4cc0b240d678be02ac

See more details on using hashes here.

Provenance

File details

Details for the file kaskade-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: kaskade-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for kaskade-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d96b86fee210d76bb0126c1bb4126c4fbbb63fd0b7b56d16d67062cbc9108285
MD5 b5eb024800a61b3bb08264d675766913
BLAKE2b-256 d75cc4be17df5c4b22b9143514d8fd7a91bd8eeb7844a0dddc25a95be57cdbf5

See more details on using hashes here.

Provenance

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