encommon 0.7.1__tar.gz → 0.7.2__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.
- {encommon-0.7.1/encommon.egg-info → encommon-0.7.2}/PKG-INFO +1 -1
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/params.py +3 -3
- encommon-0.7.2/encommon/config/test/__init__.py +16 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/test/test_config.py +1 -6
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/test/test_files.py +1 -6
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/test/test_paths.py +1 -6
- {encommon-0.7.1 → encommon-0.7.2}/encommon/crypts/params.py +2 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/test/test_times.py +1 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/times.py +13 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/stdout.py +6 -1
- encommon-0.7.2/encommon/version.txt +1 -0
- {encommon-0.7.1 → encommon-0.7.2/encommon.egg-info}/PKG-INFO +1 -1
- encommon-0.7.1/encommon/utils/test/__init__.py +0 -6
- encommon-0.7.1/encommon/version.txt +0 -1
- {encommon-0.7.1 → encommon-0.7.2}/LICENSE +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/MANIFEST.in +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/README.md +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/common.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/config.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/files.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/logger.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/paths.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/test/test_common.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/config/test/test_logger.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/conftest.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/crypts/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/crypts/crypts.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/crypts/hashes.py +0 -0
- {encommon-0.7.1/encommon/config → encommon-0.7.2/encommon/crypts}/test/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/crypts/test/test_crypts.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/crypts/test/test_hashes.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/py.typed +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/common.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/duration.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/parse.py +0 -0
- {encommon-0.7.1/encommon/crypts → encommon-0.7.2/encommon/times}/test/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/test/test_common.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/test/test_duration.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/test/test_parse.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/test/test_timers.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/test/test_window.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/timers.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/times/window.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/dicts.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/empty.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/strings.py +0 -0
- {encommon-0.7.1/encommon/times → encommon-0.7.2/encommon/types}/test/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/test/test_dicts.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/test/test_empty.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/types/test/test_strings.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/common.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/match.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/paths.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/sample.py +0 -0
- {encommon-0.7.1/encommon/types → encommon-0.7.2/encommon/utils}/test/__init__.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/test/test_match.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/test/test_paths.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/test/test_sample.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon/utils/test/test_stdout.py +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon.egg-info/SOURCES.txt +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon.egg-info/dependency_links.txt +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon.egg-info/requires.txt +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/encommon.egg-info/top_level.txt +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/pyproject.toml +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/reqs-install.txt +0 -0
- {encommon-0.7.1 → encommon-0.7.2}/setup.cfg +0 -0
@@ -22,7 +22,7 @@ class ConfigParams(BaseModel, extra='forbid'):
|
|
22
22
|
|
23
23
|
:param paths: Complete or relative path to config paths.
|
24
24
|
:param data: Keyword arguments passed to Pydantic model.
|
25
|
-
|
25
|
+
Parameter is picked up by autodoc, please ignore.
|
26
26
|
"""
|
27
27
|
|
28
28
|
paths: Optional[list[str]] = None
|
@@ -37,7 +37,7 @@ class LoggerParams(BaseModel, extra='forbid'):
|
|
37
37
|
:param file_level: Minimum log message severity level.
|
38
38
|
:param file_path: Enables writing to the filesystem path.
|
39
39
|
:param data: Keyword arguments passed to Pydantic model.
|
40
|
-
|
40
|
+
Parameter is picked up by autodoc, please ignore.
|
41
41
|
"""
|
42
42
|
|
43
43
|
stdo_level: Optional[LOGLEVELS] = None
|
@@ -54,7 +54,7 @@ class Params(BaseModel, extra='forbid'):
|
|
54
54
|
:param enlogger: Configuration for the `.Logger` object.
|
55
55
|
:param encrypts: Configuration for the `.Crypts` object.
|
56
56
|
:param data: Keyword arguments passed to Pydantic model.
|
57
|
-
|
57
|
+
Parameter is picked up by autodoc, please ignore.
|
58
58
|
"""
|
59
59
|
|
60
60
|
enconfig: Optional[ConfigParams] = None
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"""
|
2
|
+
Functions and routines associated with Enasis Network Common Library.
|
3
|
+
|
4
|
+
This file is part of Enasis Network software eco-system. Distribution
|
5
|
+
is permitted, for more information consult the project license file.
|
6
|
+
"""
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
from pathlib import Path
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
SAMPLES = (
|
15
|
+
Path(__file__).parent
|
16
|
+
.joinpath('samples'))
|
@@ -9,6 +9,7 @@ is permitted, for more information consult the project license file.
|
|
9
9
|
|
10
10
|
from pathlib import Path
|
11
11
|
|
12
|
+
from . import SAMPLES
|
12
13
|
from ..config import Config
|
13
14
|
from ..logger import Logger
|
14
15
|
from ..params import Params
|
@@ -19,12 +20,6 @@ from ...utils.sample import prep_sample
|
|
19
20
|
|
20
21
|
|
21
22
|
|
22
|
-
SAMPLES = (
|
23
|
-
Path(__file__).parent
|
24
|
-
.joinpath('samples'))
|
25
|
-
|
26
|
-
|
27
|
-
|
28
23
|
def test_Config( # noqa: CFQ001
|
29
24
|
config_path: Path,
|
30
25
|
) -> None:
|
@@ -9,6 +9,7 @@ is permitted, for more information consult the project license file.
|
|
9
9
|
|
10
10
|
from pathlib import Path
|
11
11
|
|
12
|
+
from . import SAMPLES
|
12
13
|
from ..files import ConfigFile
|
13
14
|
from ..files import ConfigFiles
|
14
15
|
from ... import ENPYRWS
|
@@ -17,12 +18,6 @@ from ...utils.sample import prep_sample
|
|
17
18
|
|
18
19
|
|
19
20
|
|
20
|
-
SAMPLES = (
|
21
|
-
Path(__file__).parent
|
22
|
-
.joinpath('samples'))
|
23
|
-
|
24
|
-
|
25
|
-
|
26
21
|
def test_ConfigFile(
|
27
22
|
config_path: Path,
|
28
23
|
) -> None:
|
@@ -9,6 +9,7 @@ is permitted, for more information consult the project license file.
|
|
9
9
|
|
10
10
|
from pathlib import Path
|
11
11
|
|
12
|
+
from . import SAMPLES
|
12
13
|
from ..paths import ConfigPath
|
13
14
|
from ..paths import ConfigPaths
|
14
15
|
from ... import ENPYRWS
|
@@ -17,12 +18,6 @@ from ...utils.sample import prep_sample
|
|
17
18
|
|
18
19
|
|
19
20
|
|
20
|
-
SAMPLES = (
|
21
|
-
Path(__file__).parent
|
22
|
-
.joinpath('samples'))
|
23
|
-
|
24
|
-
|
25
|
-
|
26
21
|
def test_ConfigPath(
|
27
22
|
config_path: Path,
|
28
23
|
) -> None:
|
@@ -15,7 +15,9 @@ class CryptsParams(BaseModel, extra='forbid'):
|
|
15
15
|
"""
|
16
16
|
Process and validate the common configuration parameters.
|
17
17
|
|
18
|
+
:param phrases: Passphrases that are used in operations.
|
18
19
|
:param data: Keyword arguments passed to Pydantic model.
|
20
|
+
Parameter is picked up by autodoc, please ignore.
|
19
21
|
"""
|
20
22
|
|
21
23
|
phrases: dict[str, str]
|
@@ -346,6 +346,19 @@ class Times:
|
|
346
346
|
return since_time(self.__source)
|
347
347
|
|
348
348
|
|
349
|
+
@property
|
350
|
+
def since(
|
351
|
+
self,
|
352
|
+
) -> float:
|
353
|
+
"""
|
354
|
+
Determine the time in seconds that occured since instance.
|
355
|
+
|
356
|
+
:returns: Time in seconds that occured between the values.
|
357
|
+
"""
|
358
|
+
|
359
|
+
return since_time(self.__source)
|
360
|
+
|
361
|
+
|
349
362
|
@property
|
350
363
|
def before(
|
351
364
|
self,
|
@@ -178,11 +178,16 @@ def array_ansi( # noqa: CFQ001, CFQ004
|
|
178
178
|
This massive function should be refactored, possibly
|
179
179
|
into a class with methods where there are functions.
|
180
180
|
|
181
|
+
Example
|
182
|
+
-------
|
183
|
+
>>> array_ansi({'foo': 'bar'})
|
184
|
+
"\\x1b[0;97mfoo\\x1b[0;37m:\\x1b[0;0m...
|
185
|
+
|
181
186
|
:param source: Value in supported and iterable formats.
|
182
187
|
:param indent: How many levels for initial indentation.
|
183
188
|
:param colors: Determine colors used with different types.
|
184
189
|
:returns: ANSI colorized string using inline directives.
|
185
|
-
"""
|
190
|
+
""" # noqa: D301 LIT102
|
186
191
|
|
187
192
|
output: list[str] = []
|
188
193
|
|
@@ -0,0 +1 @@
|
|
1
|
+
0.7.2
|
@@ -1 +0,0 @@
|
|
1
|
-
0.7.1
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|