pythermodb-settings 0.1.3__tar.gz → 0.1.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.
- {pythermodb_settings-0.1.3/pythermodb_settings.egg-info → pythermodb_settings-0.1.4}/PKG-INFO +1 -1
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pyproject.toml +1 -1
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/configs/about.py +1 -1
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/references.py +29 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4/pythermodb_settings.egg-info}/PKG-INFO +1 -1
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/LICENSE +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/README.md +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/__init__.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/app.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/configs/__init__.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/__init__.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/components.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/conditions.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/configs.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/rules.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/source.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/utils/__init__.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/utils/component_utils.py +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/SOURCES.txt +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/dependency_links.txt +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/requires.txt +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/top_level.txt +0 -0
- {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/setup.cfg +0 -0
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/configs/about.py
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# NOTE: app info
|
2
|
-
__version__ = "0.1.
|
2
|
+
__version__ = "0.1.4"
|
3
3
|
__description__ = """PyThermoDB Settings is a Python package that acts as an interface between pythermdb and other applications, providing robust, Pydantic-based data models and configuration structures for managing thermodynamic database (ThermoDB) settings."""
|
4
4
|
__author__ = "Sina Gilassi"
|
5
5
|
__author_email__ = "sina.gilassi@gmail.com"
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/references.py
RENAMED
@@ -111,6 +111,35 @@ class ComponentReferenceThermoDB(BaseModel):
|
|
111
111
|
extra="allow"
|
112
112
|
)
|
113
113
|
|
114
|
+
# NOTE: mixture reference thermodb model
|
115
|
+
|
116
|
+
|
117
|
+
class MixtureReferenceThermoDB(BaseModel):
|
118
|
+
"""
|
119
|
+
Model for mixture thermodynamic database (ThermoDB).
|
120
|
+
|
121
|
+
Attributes
|
122
|
+
----------
|
123
|
+
components : List[Component]
|
124
|
+
The list of components forming the mixture for which the thermodynamic database is built.
|
125
|
+
reference_thermodb : ReferenceThermoDB
|
126
|
+
Reference thermodynamic database.
|
127
|
+
mixture_key : Literal['Name', 'Formula'], optional
|
128
|
+
Key to identify the mixture in the reference content, by default 'Name'.
|
129
|
+
"""
|
130
|
+
components: List[Component] = Field(
|
131
|
+
...,
|
132
|
+
description="The list of components forming the mixture for which the thermodynamic database is built."
|
133
|
+
)
|
134
|
+
reference_thermodb: ReferenceThermoDB = Field(
|
135
|
+
..., description="Reference thermodynamic database."
|
136
|
+
)
|
137
|
+
|
138
|
+
model_config = ConfigDict(
|
139
|
+
arbitrary_types_allowed=True,
|
140
|
+
extra="allow"
|
141
|
+
)
|
142
|
+
|
114
143
|
# NOTE: references thermodb model
|
115
144
|
|
116
145
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/configs/__init__.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/__init__.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/components.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/conditions.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/configs.py
RENAMED
File without changes
|
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/source.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/utils/__init__.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/utils/component_utils.py
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/requires.txt
RENAMED
File without changes
|
{pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|