portforward 0.4.1__cp39-cp39-win_amd64.whl → 0.4.3__cp39-cp39-win_amd64.whl

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.

Potentially problematic release.


This version of portforward might be problematic. Click here for more details.

_portforward.pyd CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: portforward
3
- Version: 0.4.1
3
+ Version: 0.4.3
4
4
  Summary: Kubernetes Port-Forward Go-Edition For Python
5
5
  Home-page: https://github.com/pytogo/portforward
6
6
  Author: Sebastian Ziemann
@@ -128,9 +128,7 @@ Features
128
128
  Development
129
129
  -----------
130
130
 
131
- In case you want to develop on this library itself you need the required tools for installing
132
- ``portforward`` from source.
133
-
131
+ In case you want to develop on this library itself please take a look at the CONTRIBUTING page.
134
132
 
135
133
  Credits
136
134
  -------
@@ -149,6 +147,14 @@ This project is enabled by setuptools-golang_.
149
147
  History
150
148
  =======
151
149
 
150
+ 0.4.3 (2023-02-27)
151
+ ------------------
152
+ * Throw error instead of panic when port is in usage
153
+
154
+ 0.4.2 (2023-02-06)
155
+ ------------------
156
+ * Use in-cluster-config when no kube config file is available
157
+
152
158
  0.4.1 (2023-02-01)
153
159
  ------------------
154
160
  * Bump pytogo/portforward version
@@ -0,0 +1,9 @@
1
+ _portforward.h,sha256=wn0Tm3bPAOHG6L557oNDRHT_UA4BKVVsGABd6I3UFRA,2000
2
+ _portforward.pyd,sha256=CQT2sWEesNJQKktrWg8LeZlrsnA_5xNBhM_ap4e5zHM,29420032
3
+ portforward.py,sha256=O0FO0_oOFBdlElViFNoU2GfKmaZ_sFCDN6u32i6TOQg,4161
4
+ portforward-0.4.3.dist-info/AUTHORS.rst,sha256=mskf9O-AvJL9NxWUYX0nJRuLfBw7SH-T-H-pPYLW-xI,176
5
+ portforward-0.4.3.dist-info/LICENSE,sha256=_-nf_xCZIwUkKBXXiYR-fjbXGhmx6V-7b3jSKoolnO4,1096
6
+ portforward-0.4.3.dist-info/METADATA,sha256=J3kH9ykWqapb3k5UF6d-_h2ILXW24Dk-KFRBA9lVnFE,5441
7
+ portforward-0.4.3.dist-info/WHEEL,sha256=MRZ_p7RU4olp1XL4U2EYLkuYikriaVRqXBoKVLH_OSE,100
8
+ portforward-0.4.3.dist-info/top_level.txt,sha256=exoD3EZ-bCCtxQBQLSjSOZet0334F_dpAGxXr8XhWUA,25
9
+ portforward-0.4.3.dist-info/RECORD,,
portforward.py CHANGED
@@ -2,7 +2,7 @@
2
2
  Kubernetes Port-Forward Go-Edition For Python
3
3
  """
4
4
 
5
- __version__ = "0.4.1"
5
+ __version__ = "0.4.3"
6
6
 
7
7
  import contextlib
8
8
  import os
@@ -43,6 +43,8 @@ def forward(
43
43
 
44
44
  The libary will figure out for you if it has to target a pod or service.
45
45
 
46
+ It will fall back to in-cluster-config in case no kube config file exists.
47
+
46
48
  Caution: Go and the port-forwarding needs some ms to be ready. ``waiting``
47
49
  can be used to wait until the port-forward is ready.
48
50
 
@@ -135,7 +137,9 @@ def _config_path(config_path_arg) -> str:
135
137
 
136
138
  alt_path = str(Path.home() / ".kube" / "config")
137
139
 
138
- return os.environ.get("KUBECONFIG", alt_path)
140
+ config_path = os.environ.get("KUBECONFIG", alt_path)
141
+
142
+ return config_path if os.path.isfile(config_path) else ""
139
143
 
140
144
 
141
145
  def _kube_context(arg):
@@ -1,9 +0,0 @@
1
- _portforward.h,sha256=wn0Tm3bPAOHG6L557oNDRHT_UA4BKVVsGABd6I3UFRA,2000
2
- _portforward.pyd,sha256=h4B6Hv8J6QxZ_PdJOSrPc0-MvKTLkn1AeZGatEJsi9Y,29418496
3
- portforward.py,sha256=wQZ2oIfWgInI3bLS7698NaOp6paMdkLqaYya3Iwq5zo,4007
4
- portforward-0.4.1.dist-info/AUTHORS.rst,sha256=mskf9O-AvJL9NxWUYX0nJRuLfBw7SH-T-H-pPYLW-xI,176
5
- portforward-0.4.1.dist-info/LICENSE,sha256=_-nf_xCZIwUkKBXXiYR-fjbXGhmx6V-7b3jSKoolnO4,1096
6
- portforward-0.4.1.dist-info/METADATA,sha256=wTydsnEpg23OdxHOm57jLrLO1XFXrX3GWvsktUm_hto,5276
7
- portforward-0.4.1.dist-info/WHEEL,sha256=MRZ_p7RU4olp1XL4U2EYLkuYikriaVRqXBoKVLH_OSE,100
8
- portforward-0.4.1.dist-info/top_level.txt,sha256=exoD3EZ-bCCtxQBQLSjSOZet0334F_dpAGxXr8XhWUA,25
9
- portforward-0.4.1.dist-info/RECORD,,