ae-base 0.3.51__tar.gz → 0.3.52__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.
- {ae_base-0.3.51/ae_base.egg-info → ae_base-0.3.52}/PKG-INFO +5 -5
- {ae_base-0.3.51 → ae_base-0.3.52}/README.md +4 -4
- {ae_base-0.3.51 → ae_base-0.3.52}/ae/base.py +3 -3
- {ae_base-0.3.51 → ae_base-0.3.52/ae_base.egg-info}/PKG-INFO +5 -5
- {ae_base-0.3.51 → ae_base-0.3.52}/tests/test_base.py +8 -6
- {ae_base-0.3.51 → ae_base-0.3.52}/LICENSE.md +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/ae_base.egg-info/SOURCES.txt +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/ae_base.egg-info/dependency_links.txt +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/ae_base.egg-info/requires.txt +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/ae_base.egg-info/top_level.txt +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/ae_base.egg-info/zip-safe +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/setup.cfg +0 -0
- {ae_base-0.3.51 → ae_base-0.3.52}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_base
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.52
|
|
4
4
|
Summary: ae namespace module portion base: basic constants, helper functions and context manager
|
|
5
5
|
Home-page: https://gitlab.com/ae-group/ae_base
|
|
6
6
|
Author: AndiEcker
|
|
@@ -69,17 +69,17 @@ Dynamic: summary
|
|
|
69
69
|
|
|
70
70
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.95 -->
|
|
71
71
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
|
|
72
|
-
# base 0.3.
|
|
72
|
+
# base 0.3.52
|
|
73
73
|
|
|
74
74
|
[](
|
|
75
75
|
https://gitlab.com/ae-group/ae_base)
|
|
76
76
|
[](
|
|
78
|
+
https://gitlab.com/ae-group/ae_base/-/tree/release0.3.51)
|
|
79
79
|
[](
|
|
80
80
|
https://pypi.org/project/ae-base/#history)
|
|
81
81
|
|
|
82
|
-
>ae_base module 0.3.
|
|
82
|
+
>ae_base module 0.3.52.
|
|
83
83
|
|
|
84
84
|
[](
|
|
85
85
|
https://ae-group.gitlab.io/ae_base/coverage/index.html)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.95 -->
|
|
2
2
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
|
|
3
|
-
# base 0.3.
|
|
3
|
+
# base 0.3.52
|
|
4
4
|
|
|
5
5
|
[](
|
|
6
6
|
https://gitlab.com/ae-group/ae_base)
|
|
7
7
|
[](
|
|
9
|
+
https://gitlab.com/ae-group/ae_base/-/tree/release0.3.51)
|
|
10
10
|
[](
|
|
11
11
|
https://pypi.org/project/ae-base/#history)
|
|
12
12
|
|
|
13
|
-
>ae_base module 0.3.
|
|
13
|
+
>ae_base module 0.3.52.
|
|
14
14
|
|
|
15
15
|
[](
|
|
16
16
|
https://ae-group.gitlab.io/ae_base/coverage/index.html)
|
|
@@ -163,7 +163,7 @@ from types import ModuleType
|
|
|
163
163
|
from typing import Any, Callable, Generator, Iterable, Optional, Union, cast
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
__version__ = '0.3.
|
|
166
|
+
__version__ = '0.3.52'
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
os_path_abspath = os.path.abspath
|
|
@@ -669,8 +669,8 @@ def mask_secrets(data: Union[dict, Iterable], fragments: Iterable[str] = ('passw
|
|
|
669
669
|
if not val_is_str and isinstance(val, Iterable):
|
|
670
670
|
mask_secrets(val, fragments=fragments)
|
|
671
671
|
elif is_dict and val_is_str and isinstance(idx, str):
|
|
672
|
-
|
|
673
|
-
if any(_frag in
|
|
672
|
+
idx_lower = idx.lower()
|
|
673
|
+
if any(_frag in idx_lower for _frag in fragments):
|
|
674
674
|
data[idx] = val[:3] + "*" * 9 # type: ignore # silly mypy not sees is_dict
|
|
675
675
|
|
|
676
676
|
return data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_base
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.52
|
|
4
4
|
Summary: ae namespace module portion base: basic constants, helper functions and context manager
|
|
5
5
|
Home-page: https://gitlab.com/ae-group/ae_base
|
|
6
6
|
Author: AndiEcker
|
|
@@ -69,17 +69,17 @@ Dynamic: summary
|
|
|
69
69
|
|
|
70
70
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.95 -->
|
|
71
71
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
|
|
72
|
-
# base 0.3.
|
|
72
|
+
# base 0.3.52
|
|
73
73
|
|
|
74
74
|
[](
|
|
75
75
|
https://gitlab.com/ae-group/ae_base)
|
|
76
76
|
[](
|
|
78
|
+
https://gitlab.com/ae-group/ae_base/-/tree/release0.3.51)
|
|
79
79
|
[](
|
|
80
80
|
https://pypi.org/project/ae-base/#history)
|
|
81
81
|
|
|
82
|
-
>ae_base module 0.3.
|
|
82
|
+
>ae_base module 0.3.52.
|
|
83
83
|
|
|
84
84
|
[](
|
|
85
85
|
https://ae-group.gitlab.io/ae_base/coverage/index.html)
|
|
@@ -514,15 +514,17 @@ class TestBaseHelpers:
|
|
|
514
514
|
assert mask_secrets("") == ""
|
|
515
515
|
|
|
516
516
|
assert mask_secrets({'password': "secret"}) == {'password': "sec*********"}
|
|
517
|
+
assert mask_secrets({'PASSWORD': "secret"}) == {'PASSWORD': "sec*********"}
|
|
517
518
|
assert mask_secrets([{'pwd': "secret"}, "any"]) == [{'pwd': "sec*********"}, "any"]
|
|
519
|
+
assert mask_secrets([{'Pwd': "secret"}, "Any"]) == [{'Pwd': "sec*********"}, "Any"]
|
|
518
520
|
|
|
519
521
|
assert mask_secrets({'secret': "secret"}, fragments=('token', 'secret')) == {'secret': "sec*********"}
|
|
520
522
|
assert mask_secrets({'_token': "secret"}, fragments=('token', 'secret')) == {'_token': "sec*********"}
|
|
521
523
|
assert mask_secrets({'_token': "secret"}, fragments=('TOKEN', 'secret')) == {'_token': "secret"}
|
|
522
524
|
|
|
523
|
-
untouched = '
|
|
525
|
+
untouched = 'untouched_Pw_d_p_a_s_s_word'
|
|
524
526
|
dat = {'key1':
|
|
525
|
-
{'
|
|
527
|
+
{'subKey1':
|
|
526
528
|
(
|
|
527
529
|
{'host_Pwd': "secret"},
|
|
528
530
|
untouched,
|
|
@@ -533,11 +535,11 @@ class TestBaseHelpers:
|
|
|
533
535
|
untouched: untouched,
|
|
534
536
|
}
|
|
535
537
|
assert mask_secrets(dat) is dat
|
|
536
|
-
assert dat['key1']['
|
|
537
|
-
assert dat['key1']['
|
|
538
|
-
assert dat['
|
|
538
|
+
assert dat['key1']['subKey1'][0]['host_Pwd'] == "sec*********"
|
|
539
|
+
assert dat['key1']['passWord___'] == "sec*********"
|
|
540
|
+
assert dat['any_PASSWORD_to_hide'] == "Se*********"
|
|
539
541
|
|
|
540
|
-
assert dat['key1']['
|
|
542
|
+
assert dat['key1']['subKey1'][1] == untouched
|
|
541
543
|
assert dat[untouched] == untouched
|
|
542
544
|
|
|
543
545
|
def test_norm_line_sep(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|