pydantic-settings-manager 0.1.0__tar.gz → 0.1.1__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.
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/PKG-INFO +2 -1
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pydantic_settings_manager/base.py +2 -2
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pydantic_settings_manager/single.py +2 -2
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pyproject.toml +1 -1
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/LICENSE +0 -0
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/README.md +0 -0
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pydantic_settings_manager/__init__.py +0 -0
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pydantic_settings_manager/mapped.py +0 -0
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pydantic_settings_manager/types.py +0 -0
- {pydantic_settings_manager-0.1.0 → pydantic_settings_manager-0.1.1}/pydantic_settings_manager/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pydantic-settings-manager
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A library for managing Pydantic settings objects
|
5
5
|
Home-page: https://github.com/kiarina/pydantic-settings-manager
|
6
6
|
License: MIT
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
21
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
22
23
|
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
|
23
24
|
Requires-Dist: pydantic-settings (>=2.0.0,<3.0.0)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Base classes for settings managers.
|
3
3
|
"""
|
4
4
|
from abc import ABC, abstractmethod
|
5
|
-
from typing import Any, Generic, Type, TypeVar
|
5
|
+
from typing import Any, Dict, Generic, Type, TypeVar
|
6
6
|
|
7
7
|
from pydantic_settings import BaseSettings
|
8
8
|
|
@@ -31,7 +31,7 @@ class BaseSettingsManager(ABC, Generic[T]):
|
|
31
31
|
self.settings_cls = settings_cls
|
32
32
|
"""The settings class being managed"""
|
33
33
|
|
34
|
-
self.user_config:
|
34
|
+
self.user_config: Dict[str, Any] = {}
|
35
35
|
"""User configuration dictionary"""
|
36
36
|
|
37
37
|
@property
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""
|
2
2
|
Single settings manager implementation.
|
3
3
|
"""
|
4
|
-
from typing import Any, Dict, Type
|
4
|
+
from typing import Any, Dict, Type, Union
|
5
5
|
|
6
6
|
from .base import BaseSettingsManager, T
|
7
7
|
from .utils import NestedDict, nested_dict, update_dict
|
@@ -58,7 +58,7 @@ class SingleSettingsManager(BaseSettingsManager[T]):
|
|
58
58
|
self.user_config: Dict[str, Any] = {}
|
59
59
|
"""User configuration"""
|
60
60
|
|
61
|
-
self._settings: T
|
61
|
+
self._settings: Union[T, None] = None
|
62
62
|
"""Cached settings"""
|
63
63
|
|
64
64
|
@property
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|