python4cpm 1.1.6__tar.gz → 1.1.7__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.
- {python4cpm-1.1.6/src/python4cpm.egg-info → python4cpm-1.1.7}/PKG-INFO +1 -1
- {python4cpm-1.1.6 → python4cpm-1.1.7}/pyproject.toml +1 -1
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/crypto.py +1 -4
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/python4cpm.py +2 -2
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/secret.py +2 -4
- {python4cpm-1.1.6 → python4cpm-1.1.7/src/python4cpm.egg-info}/PKG-INFO +1 -1
- {python4cpm-1.1.6 → python4cpm-1.1.7}/LICENSE +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/README.md +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/setup.cfg +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/__init__.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/accounts.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/args.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/devhelper.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/envhandler.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/logger.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm/python4cpmhandler.py +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm.egg-info/SOURCES.txt +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm.egg-info/dependency_links.txt +0 -0
- {python4cpm-1.1.6 → python4cpm-1.1.7}/src/python4cpm.egg-info/top_level.txt +0 -0
|
@@ -75,7 +75,7 @@ class Python4CPM:
|
|
|
75
75
|
def _log_obj(self, obj: object | None) -> None:
|
|
76
76
|
if obj is not None:
|
|
77
77
|
for key, value in vars(obj).items():
|
|
78
|
-
|
|
78
|
+
logging_key = f"{obj.__class__.__name__}: {key}"
|
|
79
79
|
if value is not None:
|
|
80
80
|
if not isinstance(value, Secret):
|
|
81
81
|
logging_value = f"'{value}'"
|
|
@@ -83,7 +83,7 @@ class Python4CPM:
|
|
|
83
83
|
logging_value = str(value)
|
|
84
84
|
else:
|
|
85
85
|
logging_value = "[NOT SET]"
|
|
86
|
-
self._logger.debug(f"{
|
|
86
|
+
self._logger.debug(f"{logging_key} -> {logging_value}")
|
|
87
87
|
|
|
88
88
|
def close_fail(self, unrecoverable: bool = False) -> None:
|
|
89
89
|
if unrecoverable is False:
|
|
@@ -14,11 +14,9 @@ class Secret:
|
|
|
14
14
|
def __str__(self) -> str:
|
|
15
15
|
if Crypto.ENABLED:
|
|
16
16
|
return "[ENCRYPTED]"
|
|
17
|
-
|
|
18
|
-
return "[SET]"
|
|
17
|
+
return "[SET]"
|
|
19
18
|
|
|
20
19
|
def get(self) -> str:
|
|
21
20
|
if Crypto.ENABLED:
|
|
22
21
|
return Crypto.decrypt(self._secret)
|
|
23
|
-
|
|
24
|
-
return self._secret
|
|
22
|
+
return self._secret
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|