Skip to main content

KubeWhisper - Generate kubectl commands from natural language queries

Project description

KubeWhisper

License Python Versions

KubeWhisper is a CLI tool designed to generate kubectl commands from natural language queries, providing an efficient way to manage Kubernetes resources.

Table of Contents

Installation

Install KubeWhisper via pip:

pip install kubewhisper

This will make the kubewhisper command available globally.

Setup

To use KubeWhisper, you’ll need an API token for authentication. Follow these steps to set it up:

  1. Register: Start by registering with your email and password.

    kubewhisper --register <email> <password>
    

    Check your email for a verification code.

  2. Verify: Use the verification code sent to your email to complete the registration.

    kubewhisper --verify <email> <code>
    
  3. Authenticate: After verification, authenticate with your credentials.

    kubewhisper --login <email> <password>
    

Once authenticated, your credentials will be securely stored for future use.

Usage

Query Commands

To generate a kubectl command, simply provide your query as an argument:

kubewhisper "create a pod called my-pod"

This will return the suggested kubectl command based on your query.

Auto-complete Execution

To directly execute the generated kubectl command, use the -a or --auto-complete flag:

kubewhisper "list all pods in dev namespace" --auto-complete

If the query is valid, the command will be automatically executed.

History

Retrieve a history of past queries and responses:

kubewhisper --history

Features

  • Natural Language Queries: Generate Kubernetes commands using everyday language.
  • Authentication: Register and authenticate with the KubeWhisper API for secure access.
  • Auto-complete: Option to auto-complete and execute suggested commands.
  • Query History: View past queries and responses.

Licensing and API Access

KubeWhisper CLI is open-source software licensed under the AGPL-3.0 license. This license allows you to freely use, modify, and distribute the CLI, but it requires that any modifications or public hosting of the CLI also follow the AGPL-3.0 terms.

API Access: Access to the KubeWhisper API is available through a paid subscription. By using the API, you agree to our API Terms of Service. For more information on subscription plans, visit API Pricing.

Contributing

We welcome contributions! To contribute:

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit your changes.
  4. Open a pull request.

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.

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

kubewhisper-1.0.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kubewhisper-1.0.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file kubewhisper-1.0.0.tar.gz.

File metadata

  • Download URL: kubewhisper-1.0.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for kubewhisper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 79c3db315223a7c259b2c9f3c11a385a3bb1f090f8025b42332afc3056a91274
MD5 3ebc5a878cebf4d37863ba7a5b4169df
BLAKE2b-256 dc9a7cd18bb08b3a4a230ec23cfe725a0605a3563a19d8121d7a9339451f5b1f

See more details on using hashes here.

File details

Details for the file kubewhisper-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kubewhisper-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for kubewhisper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc9ba6c45076f490a7a9e3f8c557fbc6539b43f777d4b2f75d151e809292549
MD5 c183d49395ed76a17238f27c4afbdfae
BLAKE2b-256 62eb606324754537881962d8dd928a7307674221dbcf1111f12f584c20d0647b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page