Skip to main content

PyPI version PyPI pyversions License

Features

No Need to Type kubectl Every Time

Kbsh accepts the same commands as Kubectl, except you don’t need to provide the kubectl prefix.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-prefix-free.png

If you want to run a shell command rather than a Kubectl command, you can add the ! prefix to your command.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-non-kube-cmd.png

Switch Contexts/Namespaces on the Fly

You can provide --context (or -c) option to switch the context, and --namespace (or -n) option to switch the namespace, before executing the command.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-switch.png

Show Contexts and Namespaces at Toolbar

One man names a resource, many have to remember it. It may help to display all contexts and namespaces at the bottom of the shell so that no need to use config get-contexts and get ns.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-all-ctx.png

Aliases and Short Options

Built-in aliases:

  • g -> get

  • d -> describe

  • e -> exec -i -t

  • l `` -> ``logs

  • lt -> logs --tail

  • ld -> logs deploy/

Built-in short options:

  • -t -> --tail

  • -c -> --context

Although, do not support configuration yet.

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-alias.png

Highlight Output

https://github.com/leizhag/kbsh/raw/master/docs/images/feat-highlight.png

Upstream Features

Kbsh is forked from kube-shell, and keeps all its features.

Installation

pip install kbsh

Status

Kbsh has been working great for my personal use case. But given that its aim is to increase productivity and easy of use, it can be improved in a number of ways. If you have suggestions for improvements or new features, or run into a bug please open an issue here.

Acknowledgement

Kbsh is forked from kube-shell.

Kube-shell is inspired by AWS Shell, SAWS and uses awesome Python prompt toolkit

Release files for kbsh 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kbsh 0.1.1
File Size Uploaded
kbsh-0.1.1.tar.gz 31.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kbsh 0.1.1
File Interpreter ABI Platform
kbsh-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 69.4 kB

Release files / kbsh-0.1.1.tar.gz

Download URL kbsh-0.1.1.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
776665aff28eabb7cb766ca5b2798d93d667ab86a2036a23a388e96800a3faac
BLAKE2b-256 checksum
How to use checksums
8c465e4e57c6a7548499223497be7f963a14d0a604d16aa61ce8ffb5f07bf302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / kbsh-0.1.1-py2.py3-none-any.whl

Download URL kbsh-0.1.1-py2.py3-none-any.whl
Size 38.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c29d54320e6a131fd63323b222ebe754e3e5c01aa0d96244da39d2fe63d6e06f
BLAKE2b-256 checksum
How to use checksums
f9a3ba281eff71a53007d51fef7087538a54e4f2d42c0544cc1e8ea7ab125f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page