KubeWhisper - Generate kubectl commands from natural language queries
Project description
KubeWhisper
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:
-
Register: Start by registering with your email and password.
kubewhisper --register <email> <password>
Check your email for a verification code.
-
Verify: Use the verification code sent to your email to complete the registration.
kubewhisper --verify <email> <code>
-
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:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kubewhisper-2.0.0.tar.gz.
File metadata
- Download URL: kubewhisper-2.0.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
842667b1dc2398275b753d99f3d4323a2030a53be22cc998c31b298fc796691a
|
|
| MD5 |
ba73142d20ca9893a6e1e9f24db069e1
|
|
| BLAKE2b-256 |
5736ca5a288f19fd0679199dd2501ca4a6c063b6199ba5e6840bf76b1737a592
|
File details
Details for the file kubewhisper-2.0.0-py3-none-any.whl.
File metadata
- Download URL: kubewhisper-2.0.0-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2750cfcc698073180f0fdb9dd3598690cda44e14d671b16475a3d717bd279e6a
|
|
| MD5 |
d654f646d33f8be9fe80d60b0a3657e9
|
|
| BLAKE2b-256 |
7d949bfd55c7b2a5ab6295f386ceb12f20200ddee1132a510c38e0a92796799b
|