strimzi-kafka-cli


Namestrimzi-kafka-cli JSON
Version 0.1.0a79 PyPI version JSON
download
home_pageNone
SummaryCommand Line Interface for Strimzi Kafka Operator
upload_time2024-11-06 23:39:18
maintainerNone
docs_urlNone
authorNone
requires_python<3.14,>=3.9
licenseApache-2.0
keywords kafka strimzi cli operator kubernetes k8s openshift apache-kafka
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Build](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Build/badge.svg) ![Deploy](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Deploy/badge.svg) [![PyPI](https://img.shields.io/pypi/v/strimzi-kafka-cli)](https://pypi.org/project/strimzi-kafka-cli/) [![Downloads](https://static.pepy.tech/badge/strimzi-kafka-cli)](https://pepy.tech/project/strimzi-kafka-cli) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Strimzi](https://img.shields.io/badge/Strimzi-0.40.0-blue)](https://github.com/strimzi/strimzi-kafka-operator/releases/tag/0.40.0) [![AMQ Streams](https://img.shields.io/badge/AMQ&nbsp;Streams-2.6.0-red)](https://access.redhat.com/documentation/en-us/red_hat_amq_streams/2.6)

![Strimzi CLI logo](https://github.com/SystemCraftsman/strimzi-kafka-cli/assets/10568159/596ea147-9594-4262-a0c3-d63fa14f0577)

# Strimzi Kafka CLI

Strimzi Kafka CLI is a CLI that helps traditional Apache Kafka users -both developers and administrators- to easily adapt to [Strimzi](https://strimzi.io/),
a [Kubernetes operator](https://operatorhub.io/operator/strimzi-kafka-operator) for [Apache Kafka](https://kafka.apache.org/).

The main intention is to ramp up Strimzi usage by creating a similar CLI experience with the traditional Apache Kafka tools that mostly starts with `kafka-*` prefix under the `bin` directory in an ordinary Kafka package.

Strimzi Kafka CLI uses the `kfk` command as an abbreviation for "**K**afka **F**or **K**ubernetes" or simply "**k** a **f** **k** a" which reminds of the `kafka-*` prefix of the ordinary Kafka script file names.

While having similar set of commands or options for some of the common objects, Strimzi Kafka CLI has some extra capabilities for managing or configuring Strimzi related resources.

Following are the commands of the current version of Strimzi Kafka CLI, that are used for different purposes:

``` bash
Usage: kfk [OPTIONS] COMMAND [ARGS]...

  Strimzi Kafka CLI

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  acls              Manages ACLs on Kafka.
  clusters          Creates, alters, deletes, describes Kafka cluster(s).
  configs           Adds/Removes entity config for a topic, client, user or...
  connect           Creates, alters, deletes, describes Kafka connect...
  console-consumer  Reads data from Kafka topics and outputs it to standard...
  console-producer  Reads data from standard input and publish it to Kafka.
  env               Prints the environment variable values for Strimzi Kafka CLI
  operator          Installs/Uninstalls Strimzi Kafka Operator
  topics            Creates, alters, deletes, describes Kafka topic(s).
  users             Creates, alters, deletes, describes Kafka users(s).
```

Please take a look at the relevant article [Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way](https://www.systemcraftsman.com/2020/08/25/strimzi-kafka-cli-managing-strimzi-in-a-kafka-native-way/) for more details.

## Installation

### Using Python Package Installer

``` bash
pip install strimzi-kafka-cli --user
```

Or to install Strimzi Kafka CLI in an isolated environment, you can simply use [pipx](https://pypa.github.io/pipx/):

``` bash
pipx install strimzi-kafka-cli
```

### Using Homebrew

``` bash
#Tap the homebrew repository first.
brew tap systemcraftsman/strimzi-kafka-cli

#Install Strimzi Kafka CLI
brew install strimzi-kafka-cli
```

> Installing the CLI by using Homebrew already uses a virtual environment, so you don't have to worry about your main Python environment.

Project requires: Python >=3.8

## Examples

* [TLS Authentication](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/2_tls_authentication)
* [Simple ACL Authorization](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/3_simple_acl_authorization)
* [Topic, User and Broker Configuration](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/4_configuration)
* [Kafka Connect](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/5_connect)

## Dependencies
### Python Dependencies
Please see [pyproject.toml](https://github.com/SystemCraftsman/strimzi-kafka-cli/blob/main/pyproject.toml) file.
### External Dependencies
`kubectl` and `Strimzi resources` are the tools that Strimzi Kafka CLI uses. These dependencies are automatically downloaded when the first `kfk` command is run. You can always check the dependency versions of your CLI with the following command:

``` bash
kfk --version
```

You can change where you want to locate the `kubectl`, `Strimzi resources`, or `Strimzi CLI` files/folders. You can use the following environment variables:

**STRIMZI_KAFKA_CLI_BASE_PATH:** Set this if you want to have a custom Strimzi Kafka CLI folder. It is `~/.strimzi-kafka-cli` as default.

**STRIMZI_KAFKA_CLI_STRIMZI_PATH:** Set this if you want to use a custom Strimzi/AMQ Streams. We only recommend this when using AMQ Streams instead of Strimzi.

**STRIMZI_KAFKA_CLI_KUBECTL_PATH:** Set this if you want to use a custom kubectl.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "strimzi-kafka-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.14,>=3.9",
    "maintainer_email": null,
    "keywords": "kafka, strimzi, cli, operator, kubernetes, k8s, openshift, apache-kafka",
    "author": null,
    "author_email": "Aykut Bulgu <aykut@systemcraftsman.com>",
    "download_url": "https://files.pythonhosted.org/packages/49/84/39d9f02fe0d4d16b5b9afd8ae26e1d4dda505b45059d99b435ecf54b0fb4/strimzi_kafka_cli-0.1.0a79.tar.gz",
    "platform": null,
    "description": "![Build](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Build/badge.svg) ![Deploy](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Deploy/badge.svg) [![PyPI](https://img.shields.io/pypi/v/strimzi-kafka-cli)](https://pypi.org/project/strimzi-kafka-cli/) [![Downloads](https://static.pepy.tech/badge/strimzi-kafka-cli)](https://pepy.tech/project/strimzi-kafka-cli) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Strimzi](https://img.shields.io/badge/Strimzi-0.40.0-blue)](https://github.com/strimzi/strimzi-kafka-operator/releases/tag/0.40.0) [![AMQ Streams](https://img.shields.io/badge/AMQ&nbsp;Streams-2.6.0-red)](https://access.redhat.com/documentation/en-us/red_hat_amq_streams/2.6)\n\n![Strimzi CLI logo](https://github.com/SystemCraftsman/strimzi-kafka-cli/assets/10568159/596ea147-9594-4262-a0c3-d63fa14f0577)\n\n# Strimzi Kafka CLI\n\nStrimzi Kafka CLI is a CLI that helps traditional Apache Kafka users -both developers and administrators- to easily adapt to [Strimzi](https://strimzi.io/),\na [Kubernetes operator](https://operatorhub.io/operator/strimzi-kafka-operator) for [Apache Kafka](https://kafka.apache.org/).\n\nThe main intention is to ramp up Strimzi usage by creating a similar CLI experience with the traditional Apache Kafka tools that mostly starts with `kafka-*` prefix under the `bin` directory in an ordinary Kafka package.\n\nStrimzi Kafka CLI uses the `kfk` command as an abbreviation for \"**K**afka **F**or **K**ubernetes\" or simply \"**k** a **f** **k** a\" which reminds of the `kafka-*` prefix of the ordinary Kafka script file names.\n\nWhile having similar set of commands or options for some of the common objects, Strimzi Kafka CLI has some extra capabilities for managing or configuring Strimzi related resources.\n\nFollowing are the commands of the current version of Strimzi Kafka CLI, that are used for different purposes:\n\n``` bash\nUsage: kfk [OPTIONS] COMMAND [ARGS]...\n\n  Strimzi Kafka CLI\n\nOptions:\n  --version  Show the version and exit.\n  --help     Show this message and exit.\n\nCommands:\n  acls              Manages ACLs on Kafka.\n  clusters          Creates, alters, deletes, describes Kafka cluster(s).\n  configs           Adds/Removes entity config for a topic, client, user or...\n  connect           Creates, alters, deletes, describes Kafka connect...\n  console-consumer  Reads data from Kafka topics and outputs it to standard...\n  console-producer  Reads data from standard input and publish it to Kafka.\n  env               Prints the environment variable values for Strimzi Kafka CLI\n  operator          Installs/Uninstalls Strimzi Kafka Operator\n  topics            Creates, alters, deletes, describes Kafka topic(s).\n  users             Creates, alters, deletes, describes Kafka users(s).\n```\n\nPlease take a look at the relevant article [Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way](https://www.systemcraftsman.com/2020/08/25/strimzi-kafka-cli-managing-strimzi-in-a-kafka-native-way/) for more details.\n\n## Installation\n\n### Using Python Package Installer\n\n``` bash\npip install strimzi-kafka-cli --user\n```\n\nOr to install Strimzi Kafka CLI in an isolated environment, you can simply use [pipx](https://pypa.github.io/pipx/):\n\n``` bash\npipx install strimzi-kafka-cli\n```\n\n### Using Homebrew\n\n``` bash\n#Tap the homebrew repository first.\nbrew tap systemcraftsman/strimzi-kafka-cli\n\n#Install Strimzi Kafka CLI\nbrew install strimzi-kafka-cli\n```\n\n> Installing the CLI by using Homebrew already uses a virtual environment, so you don't have to worry about your main Python environment.\n\nProject requires: Python >=3.8\n\n## Examples\n\n* [TLS Authentication](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/2_tls_authentication)\n* [Simple ACL Authorization](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/3_simple_acl_authorization)\n* [Topic, User and Broker Configuration](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/4_configuration)\n* [Kafka Connect](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/5_connect)\n\n## Dependencies\n### Python Dependencies\nPlease see [pyproject.toml](https://github.com/SystemCraftsman/strimzi-kafka-cli/blob/main/pyproject.toml) file.\n### External Dependencies\n`kubectl` and `Strimzi resources` are the tools that Strimzi Kafka CLI uses. These dependencies are automatically downloaded when the first `kfk` command is run. You can always check the dependency versions of your CLI with the following command:\n\n``` bash\nkfk --version\n```\n\nYou can change where you want to locate the `kubectl`, `Strimzi resources`, or `Strimzi CLI` files/folders. You can use the following environment variables:\n\n**STRIMZI_KAFKA_CLI_BASE_PATH:** Set this if you want to have a custom Strimzi Kafka CLI folder. It is `~/.strimzi-kafka-cli` as default.\n\n**STRIMZI_KAFKA_CLI_STRIMZI_PATH:** Set this if you want to use a custom Strimzi/AMQ Streams. We only recommend this when using AMQ Streams instead of Strimzi.\n\n**STRIMZI_KAFKA_CLI_KUBECTL_PATH:** Set this if you want to use a custom kubectl.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Command Line Interface for Strimzi Kafka Operator",
    "version": "0.1.0a79",
    "project_urls": null,
    "split_keywords": [
        "kafka",
        " strimzi",
        " cli",
        " operator",
        " kubernetes",
        " k8s",
        " openshift",
        " apache-kafka"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ea0365acab992a86e3063a8be7c6c968e940425f6c3441b387e63faeaa6c54a",
                "md5": "8d50902be645c77a8c3b5e0f3c4adfb0",
                "sha256": "4bd1aad5bdea11b6442d731300a5d4540bff62e0028d1426929cec3d9b409a5e"
            },
            "downloads": -1,
            "filename": "strimzi_kafka_cli-0.1.0a79-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8d50902be645c77a8c3b5e0f3c4adfb0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.14,>=3.9",
            "size": 34486,
            "upload_time": "2024-11-06T23:39:17",
            "upload_time_iso_8601": "2024-11-06T23:39:17.067463Z",
            "url": "https://files.pythonhosted.org/packages/6e/a0/365acab992a86e3063a8be7c6c968e940425f6c3441b387e63faeaa6c54a/strimzi_kafka_cli-0.1.0a79-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "498439d9f02fe0d4d16b5b9afd8ae26e1d4dda505b45059d99b435ecf54b0fb4",
                "md5": "ca0003f89ab04b93794b736fc1dc11ef",
                "sha256": "dc80a0960e5fb22c0b5f2aebc0455851b2d0eac212fbdc72346dfc742c34aa23"
            },
            "downloads": -1,
            "filename": "strimzi_kafka_cli-0.1.0a79.tar.gz",
            "has_sig": false,
            "md5_digest": "ca0003f89ab04b93794b736fc1dc11ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.14,>=3.9",
            "size": 36235,
            "upload_time": "2024-11-06T23:39:18",
            "upload_time_iso_8601": "2024-11-06T23:39:18.535868Z",
            "url": "https://files.pythonhosted.org/packages/49/84/39d9f02fe0d4d16b5b9afd8ae26e1d4dda505b45059d99b435ecf54b0fb4/strimzi_kafka_cli-0.1.0a79.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-06 23:39:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "strimzi-kafka-cli"
}
        
Elapsed time: 2.12422s