psyplus 0.9.2__tar.gz → 0.9.4__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.
- {psyplus-0.9.2 → psyplus-0.9.4}/PKG-INFO +2 -2
- psyplus-0.9.4/psyplus/__init__.py +2 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus/psyplus.py +2 -2
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus.egg-info/PKG-INFO +2 -2
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus.egg-info/requires.txt +1 -1
- {psyplus-0.9.2 → psyplus-0.9.4}/pyproject.toml +1 -1
- {psyplus-0.9.2 → psyplus-0.9.4}/tests/test.py +2 -2
- psyplus-0.9.2/psyplus/__init__.py +0 -2
- {psyplus-0.9.2 → psyplus-0.9.4}/LICENSE +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/README.md +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus/env_var_handler.py +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus/field_container.py +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus/utils.py +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus/yaml_pydantic_metadata_comment_injector.py +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus.egg-info/SOURCES.txt +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus.egg-info/dependency_links.txt +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/psyplus.egg-info/top_level.txt +0 -0
- {psyplus-0.9.2 → psyplus-0.9.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: psyplus
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
4
4
|
Summary: A helper module that builds upon pydantic-settings to generate, read and comment a config file in yaml
|
|
5
5
|
Author-email: Tim Bleimehl <bleimehl@helmholtz-munich.de>
|
|
6
6
|
License: MIT
|
|
@@ -15,7 +15,7 @@ Requires-Python: >=3.10
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: pydantic
|
|
18
|
-
Requires-Dist: pydantic-
|
|
18
|
+
Requires-Dist: pydantic-settings
|
|
19
19
|
Requires-Dist: ruamel.yaml
|
|
20
20
|
Requires-Dist: pyaml
|
|
21
21
|
|
|
@@ -20,7 +20,7 @@ import yaml
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
from psyplus.yaml_pydantic_metadata_comment_injector import YamlFileGenerator
|
|
23
|
-
from psyplus.env_var_handler import
|
|
23
|
+
from psyplus.env_var_handler import EnvVarHandler
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class YamlSettingsPlus:
|
|
@@ -42,7 +42,7 @@ class YamlSettingsPlus:
|
|
|
42
42
|
raw_yaml_object = file.read()
|
|
43
43
|
obj: Dict = yaml.safe_load(raw_yaml_object)
|
|
44
44
|
if self.parse_finde_grained_env_var:
|
|
45
|
-
env_var_handler =
|
|
45
|
+
env_var_handler = EnvVarHandler(self.model)
|
|
46
46
|
obj = env_var_handler.settings_as_dict
|
|
47
47
|
self._settings_cache = self.model.model_validate(obj)
|
|
48
48
|
return
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: psyplus
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
4
4
|
Summary: A helper module that builds upon pydantic-settings to generate, read and comment a config file in yaml
|
|
5
5
|
Author-email: Tim Bleimehl <bleimehl@helmholtz-munich.de>
|
|
6
6
|
License: MIT
|
|
@@ -15,7 +15,7 @@ Requires-Python: >=3.10
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: pydantic
|
|
18
|
-
Requires-Dist: pydantic-
|
|
18
|
+
Requires-Dist: pydantic-settings
|
|
19
19
|
Requires-Dist: ruamel.yaml
|
|
20
20
|
Requires-Dist: pyaml
|
|
21
21
|
|
|
@@ -21,7 +21,7 @@ classifiers = [
|
|
|
21
21
|
"Programming Language :: Python :: 3.11",
|
|
22
22
|
"Programming Language :: Python :: 3.12",
|
|
23
23
|
]
|
|
24
|
-
dependencies = ["pydantic", "pydantic-
|
|
24
|
+
dependencies = ["pydantic", "pydantic-settings", "ruamel.yaml", "pyaml"]
|
|
25
25
|
dynamic = ["version"]
|
|
26
26
|
|
|
27
27
|
[project.optional-dependencies]
|
|
@@ -9,7 +9,7 @@ if __name__ == "__main__":
|
|
|
9
9
|
sys.path.insert(0, os.path.normpath(MODULE_ROOT_DIR))
|
|
10
10
|
|
|
11
11
|
from psyplus import YamlSettingsPlus
|
|
12
|
-
from psyplus.env_var_handler import
|
|
12
|
+
from psyplus.env_var_handler import EnvVarHandler
|
|
13
13
|
|
|
14
14
|
# from tests.config_test import TestConfig
|
|
15
15
|
from tests.config_readme_example import TestConfig
|
|
@@ -27,7 +27,7 @@ os.environ["EXTERNAL_SUBCONFIG_LIST_WITH_EG__0__TEST_SIMPLE_LIST1__2"] = (
|
|
|
27
27
|
os.environ["EXTERNAL_SUBCONFIG_DICT2__DYNAMICDIC"] = "dictval1"
|
|
28
28
|
os.environ["EXTERNAL_SUBCONFIG_DICT2__0__TEST_SIMPLE_LIST1__3"] = "ValueExtravgante6"
|
|
29
29
|
settings = settings_wrapper.generate_config_file_with_examples_values()
|
|
30
|
-
e =
|
|
30
|
+
e = EnvVarHandler(settings=settings)
|
|
31
31
|
import yaml
|
|
32
32
|
|
|
33
33
|
print("settings", yaml.dump(e.settings.model_dump()))
|
|
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
|