r/Python • u/AutoModerator • May 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
24
Upvotes
r/Python • u/AutoModerator • May 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
2
u/Codemageddon May 05 '26 edited May 05 '26 •
Hi everyone. Today I released the first beta of an async Kubernetes client for Python, built on top of Pydantic v2 inspired by kube.rs. Why I decided to build it:
got tired of writing
# type: ignoreevery time I used kubernetes-asynciogot tired of endlessly digging around to figure out what shape kubernetes-asyncio expects for a given piece of a resource spec
limited built-in support for working with custom resources, which is critical when writing controllers
What's there now:
Strictly typed API and resource models
Support for multiple Kubernetes versions simultaneously
Typed models covering the entire Kubernetes spec
Full custom resource support — just write a Pydantic model for the resource you need, and you can work with it the same way you'd work with a built-in
aiohttpandhttpxas the underlying HTTP clientsSupport for
asyncioandtrioThanks to Pydantic v2, Kubex is dramatically faster than kubernetes-asyncio, uses much less memory, and makes fewer heap allocations (see benchmarks)
Links:
Docs: https://kubex.codemageddon.me/0.1.0-beta.1/
GitHub: https://github.com/codemageddon/kubex
Code example:
---
The library is currently in early beta, meaning the public API surface may still change — but it's unlikely to change much, at least for the core functionality.