osbot-utils 1.42.0__py3-none-any.whl → 1.43.0__py3-none-any.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.
- osbot_utils/testing/Temp_Env_Vars.py +4 -4
- osbot_utils/version +1 -1
- {osbot_utils-1.42.0.dist-info → osbot_utils-1.43.0.dist-info}/METADATA +2 -2
- {osbot_utils-1.42.0.dist-info → osbot_utils-1.43.0.dist-info}/RECORD +6 -6
- {osbot_utils-1.42.0.dist-info → osbot_utils-1.43.0.dist-info}/LICENSE +0 -0
- {osbot_utils-1.42.0.dist-info → osbot_utils-1.43.0.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import os
|
2
|
-
|
3
2
|
from osbot_utils.base_classes.Type_Safe import Type_Safe
|
3
|
+
from osbot_utils.utils.Env import del_env, set_env
|
4
4
|
|
5
5
|
|
6
6
|
class Temp_Env_Vars(Type_Safe):
|
@@ -16,12 +16,12 @@ class Temp_Env_Vars(Type_Safe):
|
|
16
16
|
def set_vars(self):
|
17
17
|
for key, value in self.env_vars.items():
|
18
18
|
self.original_env_vars[key] = os.environ.get(key) # Backup original environment variables and set new ones
|
19
|
-
|
19
|
+
set_env(key, value)
|
20
20
|
return self
|
21
21
|
|
22
22
|
def restore_vars(self):
|
23
23
|
for key in self.env_vars: # Restore original environment variables
|
24
24
|
if self.original_env_vars[key] is None:
|
25
|
-
|
25
|
+
del_env(key)
|
26
26
|
else:
|
27
|
-
|
27
|
+
set_env(key, self.original_env_vars[key])
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v1.
|
1
|
+
v1.43.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.43.0
|
4
4
|
Summary: OWASP Security Bot - Utils
|
5
5
|
Home-page: https://github.com/owasp-sbot/OSBot-Utils
|
6
6
|
License: MIT
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
22
22
|
|
23
23
|
Powerful Python util methods and classes that simplify common apis and tasks.
|
24
24
|
|
25
|
-

|
26
26
|
[](https://codecov.io/gh/owasp-sbot/OSBot-Utils)
|
27
27
|
|
28
28
|
|
@@ -253,7 +253,7 @@ osbot_utils/testing/Profiler.py,sha256=4em6Lpp0ONRDoDDCZsc_CdAOi_QolKOp4eA7KHN96
|
|
253
253
|
osbot_utils/testing/Pytest.py,sha256=R3qdsIXGcNQcu7iobz0RB8AhbbHhc6t757tZoSZRrxA,730
|
254
254
|
osbot_utils/testing/Stderr.py,sha256=ynf0Wle9NvgneLChzAxFBQ0QlE5sbri_fzJ8bEJMNkc,718
|
255
255
|
osbot_utils/testing/Stdout.py,sha256=Gmxd_dOplXlucdSbOhYhka9sWP-Hmqb7ZuLs_JjtW7Y,592
|
256
|
-
osbot_utils/testing/Temp_Env_Vars.py,sha256=
|
256
|
+
osbot_utils/testing/Temp_Env_Vars.py,sha256=mQsc_ogtx2TA_20Y5zPusUZGvk_EZv4PMZjAXElbtFw,933
|
257
257
|
osbot_utils/testing/Temp_File.py,sha256=yZBL9MmcNU4PCQ4xlF4rSss4GylKoX3T_AJF-BlQhdI,1693
|
258
258
|
osbot_utils/testing/Temp_Folder.py,sha256=Dbcohr2ciex6w-kB79R41Nuoa0pgpDbKtPGnlMmJ73k,5194
|
259
259
|
osbot_utils/testing/Temp_Sys_Path.py,sha256=gOMD-7dQYQlejoDYUqsrmuZQ9DLC07ymPZB3zYuNmG4,256
|
@@ -288,8 +288,8 @@ osbot_utils/utils/Toml.py,sha256=dqiegndCJF7V1YT1Tc-b0-Bl6QWyL5q30urmQwMXfMQ,140
|
|
288
288
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
289
289
|
osbot_utils/utils/Zip.py,sha256=Gt4K7Q9LlYeRxOVv8aYpaBLKxrYriCAEUa_R6YWEbMg,13903
|
290
290
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
291
|
-
osbot_utils/version,sha256=
|
292
|
-
osbot_utils-1.
|
293
|
-
osbot_utils-1.
|
294
|
-
osbot_utils-1.
|
295
|
-
osbot_utils-1.
|
291
|
+
osbot_utils/version,sha256=fOAaMknsjZubrhlMwCGvu20rNnqh4_mOJhZtjkpg_Kc,8
|
292
|
+
osbot_utils-1.43.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
293
|
+
osbot_utils-1.43.0.dist-info/METADATA,sha256=5H4eus-dFNyqQRkdoDLjMr6edaH7GNP71DyQr0102Es,1266
|
294
|
+
osbot_utils-1.43.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
295
|
+
osbot_utils-1.43.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|