portforward 0.4.1__cp310-cp310-win_amd64.whl → 0.4.3__cp310-cp310-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
@@ -130,9 +130,7 @@ Features
130
130
  Development
131
131
  -----------
132
132
 
133
- In case you want to develop on this library itself you need the required tools for installing
134
- ``portforward`` from source.
135
-
133
+ In case you want to develop on this library itself please take a look at the CONTRIBUTING page.
136
134
 
137
135
  Credits
138
136
  -------
@@ -151,6 +149,14 @@ This project is enabled by setuptools-golang_.
151
149
  History
152
150
  =======
153
151
 
152
+ 0.4.3 (2023-02-27)
153
+ ------------------
154
+ * Throw error instead of panic when port is in usage
155
+
156
+ 0.4.2 (2023-02-06)
157
+ ------------------
158
+ * Use in-cluster-config when no kube config file is available
159
+
154
160
  0.4.1 (2023-02-01)
155
161
  ------------------
156
162
  * Bump pytogo/portforward version
@@ -0,0 +1,9 @@
1
+ _portforward.h,sha256=wn0Tm3bPAOHG6L557oNDRHT_UA4BKVVsGABd6I3UFRA,2000
2
+ _portforward.pyd,sha256=C8DQZO6KncNzccW_hFykG41IOsja5p1iYaZnau4dMOI,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=o4VKBfOP8uf6gWEYVFIwt5kOYKhQsydtFK1tEuZtv6c,5489
7
+ portforward-0.4.3.dist-info/WHEEL,sha256=W26pYN7HLsBT1jrDSL9udgf_mdNKJmYmL23sIP-FcgM,102
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=eNJSSLkqYcD9-gZJSxs3as7LarMKplDhOTyfJYgCyBw,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=h3zJClNfwn5bDvcxftwdQ5yQ48pU3197q1WP2y56Lkg,5324
7
- portforward-0.4.1.dist-info/WHEEL,sha256=W26pYN7HLsBT1jrDSL9udgf_mdNKJmYmL23sIP-FcgM,102
8
- portforward-0.4.1.dist-info/top_level.txt,sha256=exoD3EZ-bCCtxQBQLSjSOZet0334F_dpAGxXr8XhWUA,25
9
- portforward-0.4.1.dist-info/RECORD,,