encommon 2.0.0__tar.gz → 2.0.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {encommon-2.0.0/encommon.egg-info → encommon-2.0.2}/PKG-INFO +1 -1
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/config.py +6 -5
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/params.py +1 -1
- encommon-2.0.2/encommon/version.txt +1 -0
- {encommon-2.0.0 → encommon-2.0.2/encommon.egg-info}/PKG-INFO +1 -1
- encommon-2.0.0/encommon/version.txt +0 -1
- {encommon-2.0.0 → encommon-2.0.2}/LICENSE +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/MANIFEST.in +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/README.md +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/common.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/files.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/logger.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/paths.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/test/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/test/test_common.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/test/test_config.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/test/test_files.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/test/test_logger.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/config/test/test_paths.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/conftest.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/crypts.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/hashes.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/params.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/test/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/test/test_crypts.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/crypts/test/test_hashes.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/py.typed +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/common.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/parse.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/test/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/test/test_common.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/test/test_parse.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/test/test_timer.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/test/test_times.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/test/test_window.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/timer.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/times.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/times/window.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/types/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/types/dicts.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/types/empty.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/types/test/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/types/test/test_dicts.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/types/test/test_empty.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/common.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/paths.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/regexp.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/sample.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/stdout.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/test/__init__.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/test/test_paths.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/test/test_regexp.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/test/test_sample.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon/utils/test/test_stdout.py +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon.egg-info/SOURCES.txt +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon.egg-info/dependency_links.txt +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon.egg-info/requires.txt +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/encommon.egg-info/top_level.txt +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/pyproject.toml +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/reqs-install.txt +0 -0
- {encommon-2.0.0 → encommon-2.0.2}/setup.cfg +0 -0
@@ -15,7 +15,7 @@ from typing import Optional
|
|
15
15
|
from .common import config_paths
|
16
16
|
from .files import ConfigFiles
|
17
17
|
from .logger import Logger
|
18
|
-
from .params import
|
18
|
+
from .params import ConfigParent
|
19
19
|
from .paths import ConfigPaths
|
20
20
|
from ..crypts.crypts import Crypts
|
21
21
|
from ..types.dicts import merge_dicts
|
@@ -29,7 +29,7 @@ class Config:
|
|
29
29
|
|
30
30
|
.. note::
|
31
31
|
Configuration loaded from files is validated with the
|
32
|
-
Pydantic model :class:`.
|
32
|
+
Pydantic model :class:`.ConfigParent`.
|
33
33
|
|
34
34
|
:param files: Complete or relative path to config files.
|
35
35
|
:param paths: Complete or relative path to config paths.
|
@@ -69,16 +69,17 @@ class Config:
|
|
69
69
|
paths = list(config_paths(paths))
|
70
70
|
|
71
71
|
self.__model = (
|
72
|
-
model or
|
72
|
+
model or ConfigParent)
|
73
73
|
|
74
74
|
self.__files = ConfigFiles(files)
|
75
75
|
self.__cargs = deepcopy(cargs)
|
76
76
|
|
77
77
|
self.__config = None
|
78
78
|
|
79
|
-
enconfig =
|
79
|
+
enconfig = (
|
80
|
+
self.config['enconfig'] or {})
|
80
81
|
|
81
|
-
if enconfig
|
82
|
+
if enconfig.get('paths'):
|
82
83
|
paths.extend(enconfig['paths'])
|
83
84
|
|
84
85
|
self.__paths = ConfigPaths(paths)
|
@@ -0,0 +1 @@
|
|
1
|
+
2.0.2
|
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0
|
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
|