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