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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: psyplus
3
- Version: 0.9.2
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-setting
18
+ Requires-Dist: pydantic-settings
19
19
  Requires-Dist: ruamel.yaml
20
20
  Requires-Dist: pyaml
21
21
 
@@ -0,0 +1,2 @@
1
+ from psyplus.psyplus import YamlSettingsPlus
2
+ from psyplus.env_var_handler import EnvVarHandler
@@ -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 EnvVarHandlerExtended
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 = EnvVarHandlerExtended(self.model)
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.2
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-setting
18
+ Requires-Dist: pydantic-settings
19
19
  Requires-Dist: ruamel.yaml
20
20
  Requires-Dist: pyaml
21
21
 
@@ -1,4 +1,4 @@
1
1
  pydantic
2
- pydantic-setting
2
+ pydantic-settings
3
3
  ruamel.yaml
4
4
  pyaml
@@ -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-setting", "ruamel.yaml", "pyaml"]
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 EnvVarHandlerExtended
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 = EnvVarHandlerExtended(settings=settings)
30
+ e = EnvVarHandler(settings=settings)
31
31
  import yaml
32
32
 
33
33
  print("settings", yaml.dump(e.settings.model_dump()))
@@ -1,2 +0,0 @@
1
- from psyplus.psyplus import YamlSettingsPlus
2
- from psyplus.env_var_handler import EnvVarHandlerExtended
File without changes
File without changes
File without changes
File without changes