encommon 0.7.4__tar.gz → 0.7.5__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.4/encommon.egg-info → encommon-0.7.5}/PKG-INFO +1 -1
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/sample.py +10 -2
- encommon-0.7.5/encommon/version.txt +1 -0
- {encommon-0.7.4 → encommon-0.7.5/encommon.egg-info}/PKG-INFO +1 -1
- encommon-0.7.4/encommon/version.txt +0 -1
- {encommon-0.7.4 → encommon-0.7.5}/LICENSE +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/MANIFEST.in +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/README.md +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/common.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/config.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/files.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/logger.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/params.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/paths.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/test/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/test/test_common.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/test/test_config.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/test/test_files.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/test/test_logger.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/config/test/test_paths.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/conftest.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/crypts.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/hashes.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/params.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/test/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/test/test_crypts.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/crypts/test/test_hashes.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/py.typed +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/common.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/duration.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/parse.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/test_common.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/test_duration.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/test_parse.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/test_timers.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/test_times.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/test/test_window.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/timers.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/times.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/times/window.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/dicts.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/empty.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/strings.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/test/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/test/test_dicts.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/test/test_empty.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/types/test/test_strings.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/common.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/match.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/paths.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/stdout.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/test/__init__.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/test/test_match.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/test/test_paths.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/test/test_sample.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon/utils/test/test_stdout.py +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon.egg-info/SOURCES.txt +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon.egg-info/dependency_links.txt +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon.egg-info/requires.txt +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/encommon.egg-info/top_level.txt +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/pyproject.toml +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/reqs-install.txt +0 -0
- {encommon-0.7.4 → encommon-0.7.5}/setup.cfg +0 -0
@@ -13,17 +13,25 @@ from pathlib import Path
|
|
13
13
|
from typing import Any
|
14
14
|
from typing import Callable
|
15
15
|
from typing import Optional
|
16
|
+
from typing import Union
|
16
17
|
|
17
18
|
from .. import PROJECT
|
18
19
|
from .. import WORKSPACE
|
19
20
|
|
20
21
|
|
21
22
|
|
23
|
+
_REPLACE = Union[
|
24
|
+
dict[str, str],
|
25
|
+
dict[str, str | Path],
|
26
|
+
dict[str, Path]]
|
27
|
+
|
28
|
+
|
29
|
+
|
22
30
|
def prep_sample(
|
23
31
|
content: Any,
|
24
32
|
*,
|
25
33
|
default: Callable[[Any], str] = str,
|
26
|
-
replace: Optional[
|
34
|
+
replace: Optional[_REPLACE] = None,
|
27
35
|
) -> Any:
|
28
36
|
"""
|
29
37
|
Return the content after processing using JSON functions.
|
@@ -76,7 +84,7 @@ def load_sample(
|
|
76
84
|
update: bool = False,
|
77
85
|
*,
|
78
86
|
default: Callable[[Any], str] = str,
|
79
|
-
replace: Optional[
|
87
|
+
replace: Optional[_REPLACE] = None,
|
80
88
|
) -> Any:
|
81
89
|
"""
|
82
90
|
Load the sample file and compare using provided content.
|
@@ -0,0 +1 @@
|
|
1
|
+
0.7.5
|
@@ -1 +0,0 @@
|
|
1
|
-
0.7.4
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|