Catalog PyPI
PACKAGE EXPLORERView in registry

agentk

PyPI

"AGENT" K is a complete minimalistic kubectl "doner"-wrap

kubectlkubernetestool
Versions collected1
Direct dependencies6From release 0.3.2
Last observed20 Oct, 22:29 UTC

README

Version 0.3.2 documentation

"k"

TLDR;

Install the "k" by either doing:

pip install agentk

(Yes, ^^ it is written in python and your OS needs to have recent version 2 or 3)

or copying it in some bin folder on your PATH and running pip install -r requirements.txt


"A person is smart. People are dumb, panicky, dangerous animals, and you know it." -- Agent K

"AGENT" K is a complete minimalistic kubectl "doner"-wrap

Obviously, as a short-hand wrapper, k can do everything kubectl already can, but it is (a) shorter and (b) adds few tricks like merging configs and switching contexts .. (k) feeds back to the kubectl command-line those args which it does not want to intercept or handle.

Usage

The following is equivalent:

kubectl get pods --all-namespaces
k get pods -A
k p -A

Switching context

Argument-free invocation prompts for context switch options between multiple cluster contexts found in ~/.kube/config:

k

Switching namespaces

One can change the default namespace on the currently active context (namespace key in ~/.kube/config) using either of two equivalent commands:

kubectl config set-context $(kubectl config current-context) --namespace foo
k sn foo

The last command is a k shortcut.

Shortcuts to get resources

You can find the full list of shortcuts defined as the dictionary inside the k script. In particular that would be:

# resource
"ev": "event",
"ep": "endpoints",
"p": "pod",
"s": "service",
"v": "volume",
"n": "node",
"dp": "deployment",
"st": "statefulset",
"in": "ingress",
"ns": "namespace",

At the end of the list there are one letter action-shortcuts:

# actions
"c": "create",
"a": "apply",
"d": "delete",

This means that the following is equivalent:

kubectl apply -f <foo-k8s-manifest.yaml>
k a -f <foo-k8s-manifest.yaml>

Develop

To remind, you can do pip install -e . in order to utilize developer mode.

Installation in the cloud

If you work with kubectl without a privileged or super-user access, for example inside a corporate network or in a cloud-shell (but you still have access to python), then your installation will look like:

pip install --user agentk

This will install the script in your local $HOME folder.

Don't forget to append your ~/.bashrc or ~/bash_profile or other shell-rc file with:

export PATH="$HOME/.local/bin:$PATH"

Command completion

You can put this into your .bashrc to get alias and auto completion for k similar as for kubectl:

source <(kubectl completion bash | sed s/kubectl/k/g)

Similar works well for zsh.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.221 Apr 20256

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
kubic-ci/k

Shared repository data · GitLab

License detected in repository
MIT License
License branch / ref
master
Contributor identities
2 · complete API traversal
License file
Contributors · showing 2 of 2 collected
ContributorContributions
Yauhen Yakimovich24
Yauhen Yakimovich1

Default-branch author identities; GitLab commit counts exclude merge commits.

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

2identities
Gauge · observed snapshots21 Oct 2026
210
2026-10-20: 2 · observed 2026-10-20T22:59:12.6776333Z2026-10-21: 2 · observed 2026-10-21T22:59:35.3444872Z
20 Oct21 Oct

gitlab · 2 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2122026-10-21T22:59:35.3444872Z
2026-10-2022026-10-20T22:59:12.6776333Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:29 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ba92f80e1b5fdf89a54745296bc92045361a2158ef3658159f80bfba959101c8