encommon 0.22.10__py3-none-any.whl → 0.22.12__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.
- encommon/times/timers.py +2 -1
- encommon/times/windows.py +2 -1
- encommon/types/__init__.py +2 -0
- encommon/types/notate.py +3 -2
- encommon/types/test/test_funcs.py +6 -3
- encommon/types/test/test_notate.py +3 -4
- encommon/types/types.py +1 -0
- encommon/version.txt +1 -1
- encommon/webkit/styles/default.css +1 -1
- encommon/webkit/test/__init__.py +1 -1
- {encommon-0.22.10.dist-info → encommon-0.22.12.dist-info}/METADATA +2 -2
- {encommon-0.22.10.dist-info → encommon-0.22.12.dist-info}/RECORD +15 -15
- {encommon-0.22.10.dist-info → encommon-0.22.12.dist-info}/WHEEL +1 -1
- {encommon-0.22.10.dist-info → encommon-0.22.12.dist-info}/licenses/LICENSE +0 -0
- {encommon-0.22.10.dist-info → encommon-0.22.12.dist-info}/top_level.txt +0 -0
encommon/times/timers.py
CHANGED
@@ -30,6 +30,7 @@ from .time import Time
|
|
30
30
|
from .timer import Timer
|
31
31
|
from ..types import BaseModel
|
32
32
|
from ..types import DictStrAny
|
33
|
+
from ..types import LDictStrAny
|
33
34
|
|
34
35
|
if TYPE_CHECKING:
|
35
36
|
from .params import TimerParams
|
@@ -366,7 +367,7 @@ class Timers:
|
|
366
367
|
childs = self.__childs
|
367
368
|
|
368
369
|
|
369
|
-
inserts:
|
370
|
+
inserts: LDictStrAny = []
|
370
371
|
|
371
372
|
update = Time('now')
|
372
373
|
|
encommon/times/windows.py
CHANGED
@@ -30,6 +30,7 @@ from .time import Time
|
|
30
30
|
from .window import Window
|
31
31
|
from ..types import BaseModel
|
32
32
|
from ..types import DictStrAny
|
33
|
+
from ..types import LDictStrAny
|
33
34
|
|
34
35
|
if TYPE_CHECKING:
|
35
36
|
from .params import WindowParams
|
@@ -417,7 +418,7 @@ class Windows:
|
|
417
418
|
childs = self.__childs
|
418
419
|
|
419
420
|
|
420
|
-
inserts:
|
421
|
+
inserts: LDictStrAny = []
|
421
422
|
|
422
423
|
update = Time('now')
|
423
424
|
|
encommon/types/__init__.py
CHANGED
@@ -28,6 +28,7 @@ from .strings import instr
|
|
28
28
|
from .strings import rplstr
|
29
29
|
from .strings import strplwr
|
30
30
|
from .types import DictStrAny
|
31
|
+
from .types import LDictStrAny
|
31
32
|
from .types import NCFalse
|
32
33
|
from .types import NCNone
|
33
34
|
from .types import NCTrue
|
@@ -51,6 +52,7 @@ __all__ = [
|
|
51
52
|
'inrepr',
|
52
53
|
'instr',
|
53
54
|
'lattrs',
|
55
|
+
'LDictStrAny',
|
54
56
|
'merge_dicts',
|
55
57
|
'rplstr',
|
56
58
|
'setate',
|
encommon/types/notate.py
CHANGED
@@ -16,6 +16,7 @@ from typing import Union
|
|
16
16
|
|
17
17
|
from .empty import Empty
|
18
18
|
from .types import DictStrAny
|
19
|
+
from .types import LDictStrAny
|
19
20
|
|
20
21
|
|
21
22
|
|
@@ -194,13 +195,13 @@ def delate(
|
|
194
195
|
|
195
196
|
|
196
197
|
def impate( # noqa: CFQ001,CFQ004
|
197
|
-
source: DictStrAny |
|
198
|
+
source: DictStrAny | LDictStrAny,
|
198
199
|
delim: str = '/',
|
199
200
|
parent: Optional[str] = None,
|
200
201
|
*,
|
201
202
|
implode_list: bool = True,
|
202
203
|
recurse_list: bool = True,
|
203
|
-
) -> DictStrAny |
|
204
|
+
) -> DictStrAny | LDictStrAny:
|
204
205
|
"""
|
205
206
|
Implode the dictionary into a single depth of notation.
|
206
207
|
|
@@ -19,7 +19,7 @@ def test_funcname() -> None:
|
|
19
19
|
assert funcname() == 'test_funcname'
|
20
20
|
|
21
21
|
|
22
|
-
class
|
22
|
+
class Test:
|
23
23
|
|
24
24
|
def test1(self) -> str:
|
25
25
|
return funcname()
|
@@ -29,5 +29,8 @@ def test_funcname() -> None:
|
|
29
29
|
return funcname()
|
30
30
|
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
method1 = Test().test1()
|
33
|
+
method2 = Test.test2()
|
34
|
+
|
35
|
+
assert method1 == 'Test.test1'
|
36
|
+
assert method2 == 'Test.test2'
|
@@ -10,8 +10,7 @@ is permitted, for more information consult the project license file.
|
|
10
10
|
from copy import deepcopy
|
11
11
|
from pathlib import Path
|
12
12
|
|
13
|
-
from
|
14
|
-
|
13
|
+
from pytest import RaisesExc
|
15
14
|
from pytest import fixture
|
16
15
|
from pytest import raises
|
17
16
|
|
@@ -250,7 +249,7 @@ def test_setate_raises() -> None:
|
|
250
249
|
Perform various tests associated with relevant routines.
|
251
250
|
"""
|
252
251
|
|
253
|
-
_raises:
|
252
|
+
_raises: RaisesExc[
|
254
253
|
ValueError | IndexError]
|
255
254
|
|
256
255
|
|
@@ -409,7 +408,7 @@ def test_impate_raises() -> None:
|
|
409
408
|
Perform various tests associated with relevant routines.
|
410
409
|
"""
|
411
410
|
|
412
|
-
_raises:
|
411
|
+
_raises: RaisesExc[ValueError]
|
413
412
|
|
414
413
|
|
415
414
|
_raises = raises(ValueError)
|
encommon/types/types.py
CHANGED
encommon/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.22.
|
1
|
+
0.22.12
|
@@ -29,7 +29,6 @@ is permitted, for more information consult the project license file.
|
|
29
29
|
|
30
30
|
:root {
|
31
31
|
|
32
|
-
|
33
32
|
--color-text-lite: 245, 245, 245; /* f5f5f5 */
|
34
33
|
--color-text-dark: 233, 233, 233; /* e9e9e9 */
|
35
34
|
|
@@ -68,6 +67,7 @@ is permitted, for more information consult the project license file.
|
|
68
67
|
/*****************************************/
|
69
68
|
|
70
69
|
:root {
|
70
|
+
|
71
71
|
--svgicon-failure: url('/images/failure');
|
72
72
|
--svgicon-information: url('/images/information');
|
73
73
|
--svgicon-success: url('/images/success');
|
encommon/webkit/test/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: encommon
|
3
|
-
Version: 0.22.
|
3
|
+
Version: 0.22.12
|
4
4
|
Summary: Enasis Network Common Library
|
5
5
|
License: MIT
|
6
6
|
Project-URL: Source, https://github.com/enasisnetwork/encommon
|
@@ -24,7 +24,7 @@ Dynamic: license-file
|
|
24
24
|
|
25
25
|
# Enasis Network Common Library
|
26
26
|
|
27
|
-
>
|
27
|
+
> This project has not released its first major version.
|
28
28
|
|
29
29
|
Common classes and functions used in various public and private projects.
|
30
30
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
encommon/__init__.py,sha256=YDGzuhpk5Gd1hq54LI0hw1NrrDvrJDrvH20TEy_0l5E,443
|
2
2
|
encommon/conftest.py,sha256=I7Zl2cMytnA-mwSPh0rRjsU0YSlES94jQq6mocRhVUE,1884
|
3
3
|
encommon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
encommon/version.txt,sha256=
|
4
|
+
encommon/version.txt,sha256=R0zSZNtNpH1C0svl_W8wWMHd5UHFR9elrZaIOFFmA10,8
|
5
5
|
encommon/colors/__init__.py,sha256=XRiGimMj8oo040NO5a5ZsbsIUxaGVW4tf4xWTPWgnZY,269
|
6
6
|
encommon/colors/color.py,sha256=vdOqOsJYJcrGq0b4udegrn4E8gcuVGx6iTRg3_s8Z-Q,11798
|
7
7
|
encommon/colors/test/__init__.py,sha256=PjrnBYT0efyvbaGeNx94dm3tP3EVHUHSVs-VGeLEv5g,218
|
@@ -39,11 +39,11 @@ encommon/times/params.py,sha256=qg0mLkXVsl54m72kd9uXRvmYKqUR_Ag5PBfnTsrwQhE,4360
|
|
39
39
|
encommon/times/parse.py,sha256=KGHGdtimrqpbyTwjhZUPgXHQqGaeDdxX8t8PrVEbwSc,6626
|
40
40
|
encommon/times/time.py,sha256=Px_9Ifae7GKSY557FAbG1g9cwy3a6VZL09puAbinztQ,11745
|
41
41
|
encommon/times/timer.py,sha256=xxS6KVXFuRLq-RkXWMR7MMX5x0HGrEhLlOhRCecuCZY,3225
|
42
|
-
encommon/times/timers.py,sha256=
|
42
|
+
encommon/times/timers.py,sha256=UhrrrRHkeA-3ek3hOA2Y9zHJImvurjFuaPJ7LxHvlPc,12279
|
43
43
|
encommon/times/unitime.py,sha256=MwYUJBdX_Rj7pW8QoMtZMUyHa4lsdZKryTdBCpVjnpY,1316
|
44
44
|
encommon/times/utils.py,sha256=PJ5QsKb3_pYEnD3Sz81d8QDhYQtTIj4HJfMoC9gNwmo,3100
|
45
45
|
encommon/times/window.py,sha256=_b55R4U5X5oeTS2PbTZHfOaNANl2WM2TRCP4-J6QLnE,8423
|
46
|
-
encommon/times/windows.py,sha256=
|
46
|
+
encommon/times/windows.py,sha256=THZ9qwwwYctAbVP4cQWdVUINTdndbhKES3kWzphSDN4,14098
|
47
47
|
encommon/times/test/__init__.py,sha256=PjrnBYT0efyvbaGeNx94dm3tP3EVHUHSVs-VGeLEv5g,218
|
48
48
|
encommon/times/test/test_duration.py,sha256=3Tw6Y_ah36GCJl4vZ76z4Jt7rIxcm9P18-A69qsbLjI,4224
|
49
49
|
encommon/times/test/test_params.py,sha256=kHvs-WvKfPQCdCDnPU9tAyMVXmzH3eUjwQN-QdWBeh4,1407
|
@@ -55,22 +55,22 @@ encommon/times/test/test_unitime.py,sha256=5i4UjBCw8R9h-Lw963GfB_dHBMEQhjvv1k-t2
|
|
55
55
|
encommon/times/test/test_utils.py,sha256=WkzHJY6zOt02Ujg5FItOo1nPtktz5ss8ODmG1tRQaaw,2056
|
56
56
|
encommon/times/test/test_window.py,sha256=6ySO5DaYzg1bsVNCqB6u71rKWc0vpolxQ09ruoswN2c,6138
|
57
57
|
encommon/times/test/test_windows.py,sha256=HCx3SmAgAcuFoAm4YbRVWooKO38fcajul1zf6rsTIUk,4810
|
58
|
-
encommon/types/__init__.py,sha256=
|
58
|
+
encommon/types/__init__.py,sha256=GWrmG11ebTpTtNEHEZB8paeVuTnpj0Ktrjjq1F2rjpg,1319
|
59
59
|
encommon/types/classes.py,sha256=FYFTu8Uj-74JWudHOlhaOrsXXPxitorBfM9_QM3EGSU,1689
|
60
60
|
encommon/types/dicts.py,sha256=IuLoVdtilhM83ujT74mcz0Zi1HI87P4k7wjnnyMxPag,2821
|
61
61
|
encommon/types/empty.py,sha256=5ykxcpoGtOyxDPW0DPPrT1q1mZxTOL2KuBqwkM5SXHc,2738
|
62
62
|
encommon/types/funcs.py,sha256=2nCAwFKY9XEsDb8bC9l5AsXyec1XyTdEIJLRzaXp_8w,964
|
63
63
|
encommon/types/lists.py,sha256=AX-siqXfLwm_5mGDsomg_7XWalZOYLE60D3wHwbNEzo,2358
|
64
|
-
encommon/types/notate.py,sha256=
|
64
|
+
encommon/types/notate.py,sha256=AhV-zdS2pg-sApm1nl-R9yfnAm9ggz_IIL4C1539gic,10719
|
65
65
|
encommon/types/strings.py,sha256=LW2WZND64cKE1LhNip3vqsoP3elLsUP6cpS0dYnUKGE,2800
|
66
|
-
encommon/types/types.py,sha256=
|
66
|
+
encommon/types/types.py,sha256=XkfQAN7EglavutOE2VMEClQi21T0yuIAxGB9lzfnQBg,353
|
67
67
|
encommon/types/test/__init__.py,sha256=WZm1yZbFd2VQg-E1b6a02E6V2QXmIWiW5TIiKFFPV-s,910
|
68
68
|
encommon/types/test/test_classes.py,sha256=PopL2yuB9-JaEor6fUJkK9TZ9-SRfYWAIH8ZZd-mGbI,1502
|
69
69
|
encommon/types/test/test_dicts.py,sha256=W--IcPwvdKaFGs_00tvWBGziFSA0wtDQMuPk4rl0gKU,3651
|
70
70
|
encommon/types/test/test_empty.py,sha256=eLsHuqq2YNABFkMLPbGbJMXeW2nyGNIxzUZv7YhPT5U,1017
|
71
|
-
encommon/types/test/test_funcs.py,sha256=
|
71
|
+
encommon/types/test/test_funcs.py,sha256=E-L1UiqLC-YyeexuEUtQcVEq4u3lfJWDLVKEbeXBO1U,694
|
72
72
|
encommon/types/test/test_lists.py,sha256=uRdON1vnDT21TBl2prlO15SHIkN7YOApZzHS78R-Bvs,1139
|
73
|
-
encommon/types/test/test_notate.py,sha256=
|
73
|
+
encommon/types/test/test_notate.py,sha256=gPF5XuSUnhrBHUXxBuyPKzuiSySZaNZK4wTSLOqegAk,9495
|
74
74
|
encommon/types/test/test_strings.py,sha256=oXusioFMdknHeBdwlP_GakDVS9Tf2YBndjonj22UfmM,1277
|
75
75
|
encommon/utils/__init__.py,sha256=Wb-YFSoGlcAW36LsaQTc_IYiqDbb2d8m_ggej42LNeI,1077
|
76
76
|
encommon/utils/common.py,sha256=-bjGJ2UJa-WTOsVYiuZcVj1gkyH5OlRdRkJtxPw8J6k,555
|
@@ -108,7 +108,7 @@ encommon/webkit/scripts/tagues.js,sha256=xTT3cQdQ8DpO63WSJxNggPODm1wn147altwbLXd
|
|
108
108
|
encommon/webkit/styles/color.css,sha256=34LegW5fuS1HLWAN9vv8EKnrwiMkzuHFLY2QQbQiah8,1433
|
109
109
|
encommon/webkit/styles/datagrid.css,sha256=wlVlW4aFpJKzFCRft1T9Dl43xv6Vwz7gZnlHzYFz24c,1518
|
110
110
|
encommon/webkit/styles/datetime.css,sha256=3mTiM9-FhgR5EOMYk8sMvR44yh_h9nZxsgcLoawOR_U,1120
|
111
|
-
encommon/webkit/styles/default.css,sha256=
|
111
|
+
encommon/webkit/styles/default.css,sha256=EXUaJ1jvIvxk0CQxRnYg_gomrK0_xK1JN4f-wxpVIMM,4966
|
112
112
|
encommon/webkit/styles/duration.css,sha256=iUTQJWIMf7xaAxXEsJ-_zRZzSPiebxO_mnHZGrymVTk,1012
|
113
113
|
encommon/webkit/styles/image.css,sha256=Sh8Mg5CZAU43jN4jJJCFpZZV7UjOKaWp4sgff8S-VNU,1452
|
114
114
|
encommon/webkit/styles/message.css,sha256=8IEEWkaUPjdd_h2jo8i0X-D9wYCo1SZ4UnmqYI4uZ5A,2560
|
@@ -116,7 +116,7 @@ encommon/webkit/styles/moderate.css,sha256=XFTKc-IOe6wY7L76aZ6Q1i1R42ffSNagsY6_S
|
|
116
116
|
encommon/webkit/styles/numeric.css,sha256=PT8bNMnfSRMg4ZPTLH7L3iT0ZQyz5hf8mYxWSIrvB8I,1176
|
117
117
|
encommon/webkit/styles/statate.css,sha256=AvrcUvsTwjgPXspv-LZbEVZ8wy6m3mtbUX9mXmC2egA,1510
|
118
118
|
encommon/webkit/styles/tagues.css,sha256=v9B2tn2KlG8BzXg8tZChf5RNMVJ2nzkt9d3-7tI1wUw,1165
|
119
|
-
encommon/webkit/test/__init__.py,sha256=
|
119
|
+
encommon/webkit/test/__init__.py,sha256=hD7m9I-A9sxsFqummnnqgFfKffbIilexCOG_W7KeBp4,909
|
120
120
|
encommon/webkit/test/conftest.py,sha256=fNeFCT95xW-PNyJZZA3v3sJvAgjhldlqy0lz88x__3A,1003
|
121
121
|
encommon/webkit/test/test_color.py,sha256=N3CnNpHrEzseKa39G42NX4BLOqrqubMfgTT-FENpHQ0,1374
|
122
122
|
encommon/webkit/test/test_content.py,sha256=bZp0vc5qEjcWaXGLfN0U3bNIwS36q-uRq-TEHkoNPNg,1571
|
@@ -131,8 +131,8 @@ encommon/webkit/test/test_moderate.py,sha256=KitKGBtwHOQm0pXXZA5nl9MwAi2pbHOsKhM
|
|
131
131
|
encommon/webkit/test/test_numeric.py,sha256=9Jqiyo-Bh572QJSyd3gqRwYTifnqqzE7_cNCmLn0CG0,3531
|
132
132
|
encommon/webkit/test/test_statate.py,sha256=4VvmyJhsK3TSK-hq3TzkzwPkXY-GPTU_7uJf-zG_y_s,1760
|
133
133
|
encommon/webkit/test/test_tagues.py,sha256=LQWk6rSBoBxAu-YmUOU8uWNki5RBzk5lp0dbFpySg68,1431
|
134
|
-
encommon-0.22.
|
135
|
-
encommon-0.22.
|
136
|
-
encommon-0.22.
|
137
|
-
encommon-0.22.
|
138
|
-
encommon-0.22.
|
134
|
+
encommon-0.22.12.dist-info/licenses/LICENSE,sha256=otnXKCtMjPlbHs0wgZ_BWULrp3g_2dWQJ6icRk9nkgg,1071
|
135
|
+
encommon-0.22.12.dist-info/METADATA,sha256=G2jWWOkjwwuDvuaWIX4EmYMgeSKSaQrod6143Zu6KFQ,4295
|
136
|
+
encommon-0.22.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
137
|
+
encommon-0.22.12.dist-info/top_level.txt,sha256=bP8q7-5tLDNm-3XPlqn_bDENfYNug5801H_xfz3BEAM,9
|
138
|
+
encommon-0.22.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|