kubernetes-client/python

Growing library size

开放

#2,677 创建于 2026年8月11日

 (3 条评论) (0 个反应) (0 位负责人)Python (3,323 个派生)batch import
help wanted

仓库指标

星标
 (6,225 个星标)
PR 合并指标
 (平均合并 10天 3小时) (30 天内合并 2 个 PR)

描述

According to dive, this library is now 79 MB in my Docker image:

This seems excessive for a Python library, and if multiplied by the number of users, it's arguably a serious waste of resources. Based on just the sizes, client and aio/client are mostly duplicates. Under that both api and models are huge, their __pycache__ are similarly huge. Inside models, functions like _get_openapi_to_dict, _to_legacy_item, _to_legacy_value, _to_openapi_value are basically the same, along with some member methods. Could you please do something to reduce this duplication, and the library size along with it?

贡献者指南