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.
Files changed (23) hide show
  1. {pythermodb_settings-0.1.3/pythermodb_settings.egg-info → pythermodb_settings-0.1.4}/PKG-INFO +1 -1
  2. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pyproject.toml +1 -1
  3. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/configs/about.py +1 -1
  4. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/references.py +29 -0
  5. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4/pythermodb_settings.egg-info}/PKG-INFO +1 -1
  6. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/LICENSE +0 -0
  7. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/README.md +0 -0
  8. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/__init__.py +0 -0
  9. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/app.py +0 -0
  10. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/configs/__init__.py +0 -0
  11. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/__init__.py +0 -0
  12. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/components.py +0 -0
  13. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/conditions.py +0 -0
  14. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/configs.py +0 -0
  15. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/rules.py +0 -0
  16. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/models/source.py +0 -0
  17. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/utils/__init__.py +0 -0
  18. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings/utils/component_utils.py +0 -0
  19. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/SOURCES.txt +0 -0
  20. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/dependency_links.txt +0 -0
  21. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/requires.txt +0 -0
  22. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/pythermodb_settings.egg-info/top_level.txt +0 -0
  23. {pythermodb_settings-0.1.3 → pythermodb_settings-0.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythermodb-settings
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Add your description here
5
5
  Author-email: Sina Gilassi <sina.gilassi@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pythermodb-settings"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "Add your description here"
9
9
  authors = [
10
10
  { name = "Sina Gilassi", email = "sina.gilassi@gmail.com" }
@@ -1,5 +1,5 @@
1
1
  # NOTE: app info
2
- __version__ = "0.1.3"
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"
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythermodb-settings
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Add your description here
5
5
  Author-email: Sina Gilassi <sina.gilassi@gmail.com>
6
6
  License-Expression: MIT