kubernetes-client/python

Growing library size

Offen

#2.677 geöffnet am 11.08.2026

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (3.323 Forks)batch import
help wanted

Repository-Metriken

Stars
 (6.225 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 10T 3h) (2 gemergte PRs in 30 T)

Beschreibung

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?

Contributor Guide