# K9
What is K9? It is a helper library to simplify the automation
of Kubernetes.
Tested with:
kubernetes v10.0.1
## Getting Started
Installing the library:
```shell
pip install -i https://test.pypi.org/simple/ k9==0.0.6
```
Here is a quick test, **test.py**
```python
import pprint
pp = pprint.PrettyPrinter(indent=2)
pp.pprint(helper.list_namespaces())
```
Run it by:
```shell
python3 test.py
```
## API Definition
### Utility Functions
#### def last_word(value: str)
This function returns the last word separated by a forward slash. This is helpful when parsing out object names in strings delimited by forward slashes. For example:
```python
pod = last_word("pods/my-pod")
# The value of pod is: my-pod
```
PyPI 官网下载 | k9-0.0.8.tar.gz
版权申诉
118 浏览量
2022-01-12
17:26:55
上传
评论
收藏 15KB GZ 举报
![avatar](https://profile-avatar.csdnimg.cn/277f6345dca0446498fbbc03843436aa_qq_38161040.jpg!1)
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- Python学习资料&项目源码-天气应用程序
- PostgreSQL JDBC 驱动包,最新的基于 jdk 1.6 的 jdbc 驱动包
- s,p,j,spj建表.sql
- 资源专区-课程设计-编程作业-计算机网络基础资源-计算机网络、现代通信组网相关的教程&案例&相关项目
- ST3007SRG-VB一款SOT23封装P-Channel场效应MOS管
- 资源专区-课程设计-编程作业-【docker配置使用】资源&&详细讲解使用
- 基于microPython开发单片机实现utf-8转gb2312
- kmp算法的C语言实现项目源代码课设.zip
- dbeaver-ce-24.1.0
- 资源专区-小白必看-通信仿真资源-傅里叶变换、滤波器、FFT等经典算法
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)