https://github.com/kr8s-org/kr8s Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Customer Stories + White papers, Ebooks, Webinars + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} kr8s-org / kr8s Public * Notifications * Fork 4 * Star 140 A batteries-included Python client library for Kubernetes that feels familiar for folks who already know how to use kubectl kr8s.org License BSD-3-Clause license 140 stars 4 forks Activity Star Notifications * Code * Issues 10 * Pull requests 5 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights kr8s-org/kr8s This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 2 branches 29 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/k] Use Git or checkout with SVN using the web URL. [gh repo clone kr8s-o] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @jacobtomlinson jacobtomlinson Add more examples to the docs (#155) ... c4d9f71 Sep 13, 2023 Add more examples to the docs (#155) c4d9f71 Git stats * 154 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github Migrate from Poetry to Hatch for kr8s packaging (#148) September 7, 2023 12:18 branding Add sticker SVG (#150) September 10, 2023 20:31 ci Update Kubernetes versions (#123) August 21, 2023 11:28 docs Add more examples to the docs (#155) September 13, 2023 21:46 examples/kubectl-ng Ensure kubectl-ng depends on kr8s (#70) June 11, 2023 21:48 kr8s Migrate from Poetry to Hatch for kr8s packaging (#148) September 7, 2023 12:18 .gitignore Migrate from Poetry to Hatch for kr8s packaging (#148) September 7, 2023 12:18 .pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#154) September 12, 2023 10:17 .readthedocs.yaml Migrate from Poetry to Hatch for kr8s packaging (#148) September 7, 2023 12:18 LICENSE Copy license from dask-kubernetes March 17, 2023 10:01 README.md Update Kubernetes versions (#123) August 21, 2023 11:28 codecov.yml Add support for scaling keys using dot notation (#63) May 25, 2023 11:29 pyproject.toml Migrate from Poetry to Hatch for kr8s packaging (#148) September 7, 2023 12:18 View code Highlights Quickstart Installation Client API Object API README.md [logo-wide] Test Codecov pre-commit.ci status Read the Docs PyPI PyPI - Python Version Kubernetes Version Support PyPI - Wheel PyPI - License A simple, extensible Python client library for Kubernetes that feels familiar for folks who already know how to use kubectl. Highlights * API inspired by kubectl to reduce developer learning curve. * Sensible defaults to reduce boiler plate. * No swagger generated code, human readable code only. * Also has an asynchronous API that can be used with asyncio and trio. * Client caching to reduce passing API objects around. * Batteries included by providing useful utilities and methods inspired by kubectl. Quickstart Installation $ pip install kr8s Client API import kr8s pods = kr8s.get("pods") See the Client API docs for more examples. Object API from kr8s.objects import Pod pod = Pod({ "apiVersion": "v1", "kind": "Pod", "metadata": { "name": "my-pod", }, "spec": { "containers": [{"name": "pause", "image": "gcr.io/google_containers/pause",}] }, }) pod.create() See the Object API docs for more examples. About A batteries-included Python client library for Kubernetes that feels familiar for folks who already know how to use kubectl kr8s.org Topics python kubernetes sync asyncio kubectl kr8s Resources Readme License BSD-3-Clause license Activity Stars 140 stars Watchers 2 watching Forks 4 forks Report repository Releases 29 tags Packages 0 No packages published Used by 2 * @dask @dask / dask-kubernetes * @kr8s-org @kr8s-org / kr8s Contributors 3 * @jacobtomlinson jacobtomlinson Jacob Tomlinson * @pre-commit-ci[bot] pre-commit-ci[bot] * @kr8s-bot kr8s-bot Kr8s Bot Languages * Python 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.