helm-python-sdk 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- helm_python_sdk-0.2.1/.gitignore +14 -0
- helm_python_sdk-0.2.1/LICENSE +202 -0
- helm_python_sdk-0.2.1/NOTICE +9 -0
- helm_python_sdk-0.2.1/PKG-INFO +236 -0
- helm_python_sdk-0.2.1/PLAN.md +264 -0
- helm_python_sdk-0.2.1/README.md +204 -0
- helm_python_sdk-0.2.1/hatch_build.py +146 -0
- helm_python_sdk-0.2.1/helm-c-src/LICENSE +202 -0
- helm_python_sdk-0.2.1/helm-c-src/NOTICE +8 -0
- helm_python_sdk-0.2.1/helm-c-src/PLAN.md +279 -0
- helm_python_sdk-0.2.1/helm-c-src/README.md +159 -0
- helm_python_sdk-0.2.1/pyproject.toml +109 -0
- helm_python_sdk-0.2.1/scripts/check_native_table.py +200 -0
- helm_python_sdk-0.2.1/scripts/dast_check.py +273 -0
- helm_python_sdk-0.2.1/scripts/fetch_native_lib.py +147 -0
- helm_python_sdk-0.2.1/scripts/tag_wheel.py +95 -0
- helm_python_sdk-0.2.1/scripts/vendor_helm_c.py +67 -0
- helm_python_sdk-0.2.1/src/helm_python/__init__.py +198 -0
- helm_python_sdk-0.2.1/src/helm_python/_handle.py +88 -0
- helm_python_sdk-0.2.1/src/helm_python/_native.py +376 -0
- helm_python_sdk-0.2.1/src/helm_python/chart.py +400 -0
- helm_python_sdk-0.2.1/src/helm_python/config.py +521 -0
- helm_python_sdk-0.2.1/src/helm_python/errors.py +223 -0
- helm_python_sdk-0.2.1/src/helm_python/logging.py +100 -0
- helm_python_sdk-0.2.1/src/helm_python/py.typed +0 -0
- helm_python_sdk-0.2.1/src/helm_python/registry.py +371 -0
- helm_python_sdk-0.2.1/tests/__init__.py +0 -0
- helm_python_sdk-0.2.1/tests/conftest.py +37 -0
- helm_python_sdk-0.2.1/tests/test_api.py +43 -0
- helm_python_sdk-0.2.1/tests/test_build_hook.py +111 -0
- helm_python_sdk-0.2.1/tests/test_chart.py +239 -0
- helm_python_sdk-0.2.1/tests/test_chart_content.py +174 -0
- helm_python_sdk-0.2.1/tests/test_cluster.py +109 -0
- helm_python_sdk-0.2.1/tests/test_cluster_extras.py +65 -0
- helm_python_sdk-0.2.1/tests/test_config.py +195 -0
- helm_python_sdk-0.2.1/tests/test_distribution.py +67 -0
- helm_python_sdk-0.2.1/tests/test_errors.py +63 -0
- helm_python_sdk-0.2.1/tests/test_logging.py +148 -0
- helm_python_sdk-0.2.1/tests/test_native.py +112 -0
- helm_python_sdk-0.2.1/tests/test_registry.py +233 -0
- helm_python_sdk-0.2.1/tests/test_set_expressions.py +40 -0
- helm_python_sdk-0.2.1/tests/test_verify.py +73 -0
- helm_python_sdk-0.2.1/vendor/helm-c/.dockerignore +8 -0
- helm_python_sdk-0.2.1/vendor/helm-c/.github/dependabot.yml +30 -0
- helm_python_sdk-0.2.1/vendor/helm-c/.github/workflows/ci.yml +470 -0
- helm_python_sdk-0.2.1/vendor/helm-c/.github/workflows/codeql.yml +43 -0
- helm_python_sdk-0.2.1/vendor/helm-c/.github/workflows/release.yml +171 -0
- helm_python_sdk-0.2.1/vendor/helm-c/.gitignore +5 -0
- helm_python_sdk-0.2.1/vendor/helm-c/Dockerfile +63 -0
- helm_python_sdk-0.2.1/vendor/helm-c/LICENSE +202 -0
- helm_python_sdk-0.2.1/vendor/helm-c/Makefile +95 -0
- helm_python_sdk-0.2.1/vendor/helm-c/NOTICE +8 -0
- helm_python_sdk-0.2.1/vendor/helm-c/PLAN.md +279 -0
- helm_python_sdk-0.2.1/vendor/helm-c/README.md +159 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/actions.go +248 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/capi.go +82 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/capi_test.go +278 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/chart.go +124 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/config.go +107 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/convert.go +70 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/coverage_test.go +196 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/dependency.go +69 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/extra.go +519 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/extra_test.go +232 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/logbridge.c +6 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/logbridge.h +19 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/logging.go +136 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/main.go +8 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/main_test.go +42 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/registry.go +138 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/render.go +52 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/strvals.go +18 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/testbridge.go +443 -0
- helm_python_sdk-0.2.1/vendor/helm-c/capi/testbridge_extra.go +189 -0
- helm_python_sdk-0.2.1/vendor/helm-c/docs/API.md +1003 -0
- helm_python_sdk-0.2.1/vendor/helm-c/docs/BUILD.md +75 -0
- helm_python_sdk-0.2.1/vendor/helm-c/docs/DESIGN.md +129 -0
- helm_python_sdk-0.2.1/vendor/helm-c/docs/MEMORY.md +42 -0
- helm_python_sdk-0.2.1/vendor/helm-c/docs/upstream/install-cancellation-race.md +159 -0
- helm_python_sdk-0.2.1/vendor/helm-c/go.mod +173 -0
- helm_python_sdk-0.2.1/vendor/helm-c/go.sum +471 -0
- helm_python_sdk-0.2.1/vendor/helm-c/include/helm_c.h +533 -0
- helm_python_sdk-0.2.1/vendor/helm-c/internal/handles/handles.go +128 -0
- helm_python_sdk-0.2.1/vendor/helm-c/internal/handles/handles_test.go +98 -0
- helm_python_sdk-0.2.1/vendor/helm-c/internal/testfixtures/fixtures.go +202 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/cerrors/cerrors.go +77 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/cerrors/cerrors_test.go +42 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/actions.go +368 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/actions_test.go +261 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/audit_test.go +560 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/chart.go +348 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/chart_io_test.go +154 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/chart_test.go +37 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/config.go +213 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/config_test.go +182 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/dependency.go +268 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/dependency_test.go +110 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/distribution.go +170 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/distribution_test.go +197 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/fuzz_test.go +49 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/install.go +159 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/json.go +48 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/kind_test.go +54 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/lint.go +80 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/logging.go +61 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/main_test.go +42 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/options_test.go +263 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/package.go +144 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/registry.go +142 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/release.go +74 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/release_actions.go +343 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/render.go +146 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/render_test.go +141 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/repo.go +106 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/settings.go +45 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/strvals.go +67 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/testing_action.go +149 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/upgrade.go +142 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/values.go +45 -0
- helm_python_sdk-0.2.1/vendor/helm-c/pkg/wrapper/verify.go +34 -0
- helm_python_sdk-0.2.1/vendor/helm-c/test/c-harness/additions.c +222 -0
- helm_python_sdk-0.2.1/vendor/helm-c/test/c-harness/harness.h +53 -0
- helm_python_sdk-0.2.1/vendor/helm-c/test/c-harness/main.c +495 -0
- helm_python_sdk-0.2.1/vendor/helm-c/test/genfixtures/main.go +25 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Shivam Kumar
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
helm-python
|
|
2
|
+
Copyright 2026 Shivam Kumar
|
|
3
|
+
https://github.com/shivamkumar99/helm-python
|
|
4
|
+
|
|
5
|
+
This product includes software originally developed by Shivam Kumar.
|
|
6
|
+
|
|
7
|
+
This product depends on helm-c-sdk and, through it, the Helm SDK
|
|
8
|
+
(helm.sh/helm/v4), Copyright The Helm Authors, licensed under the Apache
|
|
9
|
+
License, Version 2.0.
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: helm-python-sdk
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Helm v4 SDK for Python — charts, OCI registries, and releases, with no helm binary required
|
|
5
|
+
Project-URL: Homepage, https://github.com/shivamkumar99/helm-python-sdk
|
|
6
|
+
Project-URL: Native library, https://github.com/shivamkumar99/helm-c-sdk
|
|
7
|
+
Author: Shivam Kumar
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Keywords: charts,ctypes,helm,kubernetes,oci,sdk
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: System :: Systems Administration
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: build>=1.2; extra == 'dev'
|
|
25
|
+
Requires-Dist: hatchling>=1.25; extra == 'dev'
|
|
26
|
+
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
27
|
+
Requires-Dist: packaging; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
29
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
30
|
+
Requires-Dist: wheel; extra == 'dev'
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# helm-python-sdk — Helm v4 SDK for Python
|
|
34
|
+
|
|
35
|
+
[](https://github.com/shivamkumar99/helm-python-sdk/actions/workflows/ci.yml)
|
|
36
|
+
[](https://github.com/shivamkumar99/helm-python-sdk/actions/workflows/wheels.yml)
|
|
37
|
+
[](LICENSE)
|
|
38
|
+
[](pyproject.toml)
|
|
39
|
+
[](https://github.com/shivamkumar99/helm-c-sdk/releases/tag/v0.2.1)
|
|
40
|
+
[](https://github.com/helm/helm)
|
|
41
|
+
[](README.md#install)
|
|
42
|
+
[-success)](pyproject.toml)
|
|
43
|
+
|
|
44
|
+
Use [Helm](https://helm.sh) from Python: load and render charts, talk to OCI registries,
|
|
45
|
+
and install/upgrade/roll back releases — **without** the `helm` binary, a Go toolchain, or a
|
|
46
|
+
compiler.
|
|
47
|
+
|
|
48
|
+
It binds to [`libhelm_c`](https://github.com/shivamkumar99/helm-c-sdk) (a C ABI over Helm's
|
|
49
|
+
official Go SDK) using `ctypes` from the standard library, so the package itself has **zero
|
|
50
|
+
runtime dependencies**.
|
|
51
|
+
|
|
52
|
+
> **Status: early development, feature-complete API.** Charts, distribution, the release
|
|
53
|
+
> lifecycle, logging, and platform wheels all work. See `PLAN.md` for what remains before a
|
|
54
|
+
> public release.
|
|
55
|
+
|
|
56
|
+
## Install
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install helm-python-sdk
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The import name is `helm_python`.
|
|
63
|
+
|
|
64
|
+
The wheel bundles the native library for your platform, so nothing is compiled at install
|
|
65
|
+
time and no environment variables need to be set.
|
|
66
|
+
|
|
67
|
+
### If no wheel matches your platform
|
|
68
|
+
|
|
69
|
+
Three options, resolved in this order:
|
|
70
|
+
|
|
71
|
+
1. **Point at your own build** — build [helm-c-sdk](https://github.com/shivamkumar99/helm-c-sdk)
|
|
72
|
+
(`make build`, works anywhere Go runs) and set:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
export HELM_C_LIB=/path/to/libhelm_c.so # or .dylib / .dll, or its directory
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
2. **Build during install** — requires Go and a C compiler:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
HELM_PYTHON_BUILD=1 pip install --no-binary helm-python-sdk helm-python-sdk
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The source distribution vendors the pinned helm-c-sdk source, so nothing unpinned is
|
|
85
|
+
fetched. The installer checks for Go, a C compiler, and `make` first and names exactly
|
|
86
|
+
what is missing rather than failing with a compiler error.
|
|
87
|
+
3. **Prebuilt wheel** — the default when your platform is in the release matrix.
|
|
88
|
+
|
|
89
|
+
## Usage
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
import helm_python as helm
|
|
93
|
+
|
|
94
|
+
with helm.Chart.load("./mychart") as chart:
|
|
95
|
+
chart.name, chart.version # 'mychart', '0.1.0'
|
|
96
|
+
chart.values # default values as a dict
|
|
97
|
+
chart.merge_values({"replicaCount": 3}) # what an install would really use
|
|
98
|
+
|
|
99
|
+
manifests = chart.render({"replicaCount": 3}, name="demo", namespace="prod")
|
|
100
|
+
print(manifests["mychart/templates/deployment.yaml"])
|
|
101
|
+
|
|
102
|
+
chart.validate_schema({"replicaCount": 3}) # against values.schema.json, if present
|
|
103
|
+
chart.save("./dist") # -> ./dist/mychart-0.1.0.tgz
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Charts are handles into the native library. Use them as context managers (above) or call
|
|
107
|
+
`close()`; a forgotten chart is still released when it is garbage collected, and closing
|
|
108
|
+
twice is safe.
|
|
109
|
+
|
|
110
|
+
Module-level chart helpers:
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
helm.lint("./mychart") # findings are data, not exceptions
|
|
114
|
+
helm.package("./mychart", destination="./dist", version="1.2.3")
|
|
115
|
+
helm.verify("./dist/mychart-1.2.3.tgz", keyring="~/.gnupg/pubring.gpg")
|
|
116
|
+
|
|
117
|
+
helm.validate_release_name("my-release") # raises HelmInvalidArgError if unusable
|
|
118
|
+
helm.parse_set_string("image.tag=v2,ports={80,443}")
|
|
119
|
+
# {'image': {'tag': 'v2'}, 'ports': [80, 443]}
|
|
120
|
+
|
|
121
|
+
print(helm.helm_c_version(), helm.helm_sdk_version()) # 0.2.1 v4.2.3
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Registries, repositories, and dependencies:
|
|
125
|
+
|
|
126
|
+
```python
|
|
127
|
+
# HTTP chart repositories
|
|
128
|
+
helm.repo_index("https://charts.example.com")
|
|
129
|
+
helm.pull("mychart", repo_url="https://charts.example.com", destination="./dist")
|
|
130
|
+
|
|
131
|
+
# OCI registries
|
|
132
|
+
with helm.RegistryClient() as client:
|
|
133
|
+
client.login("registry.example.com", "user", "token")
|
|
134
|
+
client.push("./dist/mychart-1.0.0.tgz", "oci://registry.example.com/charts")
|
|
135
|
+
client.pull("oci://registry.example.com/charts/mychart", destination="./dist")
|
|
136
|
+
|
|
137
|
+
# Dependencies — no `helm repo add` needed; your Helm config is untouched
|
|
138
|
+
helm.dependency_update("./mychart")
|
|
139
|
+
helm.dependency_build("./mychart")
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Releases:
|
|
143
|
+
|
|
144
|
+
```python
|
|
145
|
+
with helm.Config(namespace="default") as cfg: # ~/.kube/config, or in-cluster
|
|
146
|
+
release = cfg.install("./mychart", "demo", {"replicaCount": 3}, wait="watcher", timeout=120)
|
|
147
|
+
print(release["revision"], release["status"]) # 1 deployed
|
|
148
|
+
|
|
149
|
+
cfg.upgrade("./mychart", "demo", {"replicaCount": 5})
|
|
150
|
+
cfg.history("demo") # every revision
|
|
151
|
+
cfg.get_values("demo") # {'replicaCount': 5}
|
|
152
|
+
cfg.rollback("demo", version=1)
|
|
153
|
+
cfg.uninstall("demo")
|
|
154
|
+
|
|
155
|
+
for item in cfg.list():
|
|
156
|
+
print(item["name"], item["revision"], item["status"])
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Long operations can be cancelled from another thread:
|
|
160
|
+
|
|
161
|
+
```python
|
|
162
|
+
ctx = helm.HelmContext()
|
|
163
|
+
threading.Timer(30, ctx.cancel).start()
|
|
164
|
+
try:
|
|
165
|
+
cfg.install(chart, "demo", context=ctx, wait="watcher", timeout=300)
|
|
166
|
+
except helm.HelmCancelledError:
|
|
167
|
+
...
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
`Config` accepts the whole Kubernetes connection surface — `kubeconfig_path` or inline
|
|
171
|
+
`kubeconfig_content`, `kube_context`, bearer `kube_token`, `kube_apiserver`, CA/TLS
|
|
172
|
+
settings, impersonation, throttling, `namespace`, and `storage_driver` (`secret`,
|
|
173
|
+
`configmap`, `memory`, `sql`).
|
|
174
|
+
|
|
175
|
+
Errors are a typed hierarchy rooted at `HelmError`, mapped from the ABI's error codes, and
|
|
176
|
+
several also subclass familiar builtins so existing `except` clauses keep working:
|
|
177
|
+
|
|
178
|
+
```python
|
|
179
|
+
try:
|
|
180
|
+
helm.parse_set_string("a=1,,=x=")
|
|
181
|
+
except helm.HelmValuesError as exc: # also a ValueError
|
|
182
|
+
print(exc.code, exc.detail)
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Logging
|
|
186
|
+
|
|
187
|
+
The library is silent until you ask for output:
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
import logging, helm_python as helm
|
|
191
|
+
|
|
192
|
+
logging.basicConfig(level=logging.INFO)
|
|
193
|
+
helm.enable_logging(logging.INFO) # call before creating a Config
|
|
194
|
+
...
|
|
195
|
+
helm.disable_logging()
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Records arrive on the `helm_python.native` logger, so they filter and route like any other
|
|
199
|
+
Python logging. Callbacks arrive on library threads; nothing can propagate back into the
|
|
200
|
+
native code, so a broken handler cannot crash the process.
|
|
201
|
+
|
|
202
|
+
## Why no library-path configuration is needed
|
|
203
|
+
|
|
204
|
+
The library is always loaded by **absolute path** — from inside the installed package, or
|
|
205
|
+
from `HELM_C_LIB` — never by bare name through the OS loader search path. Nothing needs to
|
|
206
|
+
be added to `LD_LIBRARY_PATH`, `DYLD_LIBRARY_PATH`, or `PATH`, moving a virtualenv does not
|
|
207
|
+
break imports, and installing this package never modifies your system configuration.
|
|
208
|
+
|
|
209
|
+
## Development
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
pip install -e ".[dev]"
|
|
213
|
+
python scripts/check_native_table.py ../helm-c/include/helm_c.h # signature drift gate
|
|
214
|
+
pytest # includes the leak gate
|
|
215
|
+
ruff check . && ruff format --check . && mypy
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
Tests locate a sibling `helm-c` checkout's `build/` directory automatically; otherwise set
|
|
219
|
+
`HELM_C_LIB`.
|
|
220
|
+
|
|
221
|
+
## Releasing
|
|
222
|
+
|
|
223
|
+
Wheels must be built from the source tree, not from the sdist, or the bundled library is
|
|
224
|
+
dropped:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
python scripts/fetch_native_lib.py --release v0.2.1 # or --from-dir ../helm-c/build
|
|
228
|
+
python -m build --wheel # NOT `python -m build`
|
|
229
|
+
python scripts/tag_wheel.py dist/*.whl # refuses a wheel with no library
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
CI does this per platform and smoke-tests every wheel in a clean virtualenv.
|
|
233
|
+
|
|
234
|
+
## License
|
|
235
|
+
|
|
236
|
+
Apache-2.0. Copyright 2026 Shivam Kumar.
|