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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ae_base
3
- Version: 0.3.51
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.51
72
+ # base 0.3.52
73
73
 
74
74
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
75
75
  https://gitlab.com/ae-group/ae_base)
76
76
  [![LatestPyPIrelease](
77
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.50?logo=python)](
78
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.50)
77
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.51?logo=python)](
78
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.51)
79
79
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
80
80
  https://pypi.org/project/ae-base/#history)
81
81
 
82
- >ae_base module 0.3.51.
82
+ >ae_base module 0.3.52.
83
83
 
84
84
  [![Coverage](https://ae-group.gitlab.io/ae_base/coverage.svg)](
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.51
3
+ # base 0.3.52
4
4
 
5
5
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
6
6
  https://gitlab.com/ae-group/ae_base)
7
7
  [![LatestPyPIrelease](
8
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.50?logo=python)](
9
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.50)
8
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.51?logo=python)](
9
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.51)
10
10
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
11
11
  https://pypi.org/project/ae-base/#history)
12
12
 
13
- >ae_base module 0.3.51.
13
+ >ae_base module 0.3.52.
14
14
 
15
15
  [![Coverage](https://ae-group.gitlab.io/ae_base/coverage.svg)](
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.51'
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
- idx = idx.lower()
673
- if any(_frag in idx for _frag in fragments):
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.51
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.51
72
+ # base 0.3.52
73
73
 
74
74
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
75
75
  https://gitlab.com/ae-group/ae_base)
76
76
  [![LatestPyPIrelease](
77
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.50?logo=python)](
78
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.50)
77
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.51?logo=python)](
78
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.51)
79
79
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
80
80
  https://pypi.org/project/ae-base/#history)
81
81
 
82
- >ae_base module 0.3.51.
82
+ >ae_base module 0.3.52.
83
83
 
84
84
  [![Coverage](https://ae-group.gitlab.io/ae_base/coverage.svg)](
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 = 'untouched_pw_p_a_s_s_word'
525
+ untouched = 'untouched_Pw_d_p_a_s_s_word'
524
526
  dat = {'key1':
525
- {'subkey1':
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']['subkey1'][0]['host_pwd'] == "sec*********"
537
- assert dat['key1']['password___'] == "sec*********"
538
- assert dat['any_password_to_hide'] == "Se*********"
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']['subkey1'][1] == untouched
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