Skip to main content

kaskade is a terminal user interface for kafka

Project description

kaskade

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

kaskade is a tui (text user interface) for kafka. :rocket: This project is powered by textual and rich!.

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

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

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

Information, it shows app information and some config examples:

kaskade --info

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-config.yml

Running with Docker

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

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

Aliases:

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

These aliases will mount the current directory as a volume.

Configuration

A yaml configuration file (check Installation and Usage section for more information).

Kafka

Simple connection example:

kafka:
  bootstrap.servers: localhost:9092

SSL encryption example:

kafka:
  bootstrap.servers: localhost:9092
  security.protocol: SSL

For more information about SSL encryption and SSL authentication go to confluent-kafka and librdkafka.

Support for env variables (example BOOTSTRAP_SERVERS):

kafka:
  bootstrap.servers: ${BOOTSTRAP_SERVERS}

Kaskade

Next settings are optional:

kaskade:
  debug: off # default off
  refresh: on # enable auto-refresh default on
  refresh-rate: 5 # auto-refresh rate default 5 secs

debug enabled will generate logs into a specific log file, execute kaskade --info to get the log path.

Screenshots

kaskade

kaskade

kaskade

Alternatives

Development

Python supported versions:

Python Versions

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

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 \
--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.3.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

kaskade-0.3.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kaskade-0.3.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for kaskade-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1072793d129b3dd3b47d3927abe5ebf5822ba766875a4b72d8ecfd0117262274
MD5 1a7b0f22169486675f684888a0160a6c
BLAKE2b-256 6e80088fe6f39569f83cf78e20b39551e9cc48eac8d8dea317e6d4bc3de4f75e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: kaskade-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for kaskade-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b3513ce224068ee69b861724650c9cadc4990b9ed374354f7f728c38ef88ab3
MD5 3cbc3e436e9859a2c6b25a8df31a2cfc
BLAKE2b-256 f8a4a92a65ca66ba649d4d5bf59fecfd11a4c323542aa64d7428d3d119938908

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