pythermodb-settings 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
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/configs/about.py +1 -1
- pythermodb_settings/models/__init__.py +3 -2
- pythermodb_settings/models/source.py +33 -2
- {pythermodb_settings-0.1.5.dist-info → pythermodb_settings-0.1.6.dist-info}/METADATA +1 -1
- {pythermodb_settings-0.1.5.dist-info → pythermodb_settings-0.1.6.dist-info}/RECORD +8 -8
- {pythermodb_settings-0.1.5.dist-info → pythermodb_settings-0.1.6.dist-info}/WHEEL +0 -0
- {pythermodb_settings-0.1.5.dist-info → pythermodb_settings-0.1.6.dist-info}/licenses/LICENSE +0 -0
- {pythermodb_settings-0.1.5.dist-info → pythermodb_settings-0.1.6.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
# NOTE: app info
|
2
|
-
__version__ = "0.1.
|
2
|
+
__version__ = "0.1.6"
|
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"
|
@@ -10,7 +10,7 @@ from .references import (
|
|
10
10
|
MixtureReferenceThermoDB
|
11
11
|
)
|
12
12
|
from .rules import ComponentRule
|
13
|
-
from .source import ComponentThermoDBSource
|
13
|
+
from .source import ComponentThermoDBSource, MixtureThermoDBSource
|
14
14
|
|
15
15
|
__all__ = [
|
16
16
|
"Component",
|
@@ -24,5 +24,6 @@ __all__ = [
|
|
24
24
|
"CustomReference",
|
25
25
|
"MixtureReferenceThermoDB",
|
26
26
|
"ComponentRule",
|
27
|
-
"ComponentThermoDBSource"
|
27
|
+
"ComponentThermoDBSource",
|
28
|
+
"MixtureThermoDBSource"
|
28
29
|
]
|
@@ -10,7 +10,7 @@ from .components import Component
|
|
10
10
|
|
11
11
|
class ComponentThermoDBSource(BaseModel):
|
12
12
|
'''
|
13
|
-
ThermoDB source containing component thermodb.
|
13
|
+
ThermoDB source containing `component` thermodb.
|
14
14
|
|
15
15
|
Attributes
|
16
16
|
----------
|
@@ -19,8 +19,39 @@ class ComponentThermoDBSource(BaseModel):
|
|
19
19
|
source: str
|
20
20
|
Path to the thermodb file
|
21
21
|
'''
|
22
|
-
component: Component
|
22
|
+
component: Component = Field(
|
23
|
+
..., description="Component object containing name, formula, and state"
|
24
|
+
)
|
25
|
+
source: str = Field(
|
26
|
+
...,
|
27
|
+
description="Path to the thermodb file"
|
28
|
+
)
|
29
|
+
|
30
|
+
model_config = ConfigDict(
|
31
|
+
arbitrary_types_allowed=True,
|
32
|
+
extra="allow"
|
33
|
+
)
|
34
|
+
|
35
|
+
|
36
|
+
class MixtureThermoDBSource(BaseModel):
|
37
|
+
'''
|
38
|
+
ThermoDB source containing `mixture` thermodb.
|
39
|
+
|
40
|
+
Attributes
|
41
|
+
----------
|
42
|
+
components: list[Component]
|
43
|
+
List of components in the mixture thermodb
|
23
44
|
source: str
|
45
|
+
Path to the thermodb file
|
46
|
+
'''
|
47
|
+
components: list[Component] = Field(
|
48
|
+
...,
|
49
|
+
description="List of components in the mixture thermodb"
|
50
|
+
)
|
51
|
+
source: str = Field(
|
52
|
+
...,
|
53
|
+
description="Path to the thermodb file"
|
54
|
+
)
|
24
55
|
|
25
56
|
model_config = ConfigDict(
|
26
57
|
arbitrary_types_allowed=True,
|
@@ -1,18 +1,18 @@
|
|
1
1
|
pythermodb_settings/__init__.py,sha256=VzJSYgJJNw_j5NmnIbq0pJhBd_9Kp-bbfOsRLepplSw,229
|
2
2
|
pythermodb_settings/app.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
pythermodb_settings/configs/__init__.py,sha256=QR38PBCzgoFwYqcViR9bFT2YIR5m9s7q8C7cV4fZjz4,211
|
4
|
-
pythermodb_settings/configs/about.py,sha256=
|
5
|
-
pythermodb_settings/models/__init__.py,sha256=
|
4
|
+
pythermodb_settings/configs/about.py,sha256=IC5oUkeH00rbJuxb7UJm2cgXghuv9R2blcCjks6cWlo,379
|
5
|
+
pythermodb_settings/models/__init__.py,sha256=4qi2Gut42auzeEpK4Gw0UkbALYlQ-kLnes0blSu_UFs,766
|
6
6
|
pythermodb_settings/models/components.py,sha256=4CwZcGpbm1PiEBQUpEmo6T6mP4y3S3LIiHCM0y9C7XU,1674
|
7
7
|
pythermodb_settings/models/conditions.py,sha256=Zm5JcM2kyMlS6b8hPbs6awa_6ps3xFoCVA4zwNPc5eg,1083
|
8
8
|
pythermodb_settings/models/configs.py,sha256=57nXShSbtiVo9fP2OFIbzRqS87oT4ITRLYJi_bp5cFI,674
|
9
9
|
pythermodb_settings/models/references.py,sha256=A27Y-7L8X-g2m-pxuDk0ateFScPE1MMEyoR1SH8VDVA,6359
|
10
10
|
pythermodb_settings/models/rules.py,sha256=1a9CyTHwpQkZQXFJWDMrEcKQAOTOwquepoOQPGznTlc,74
|
11
|
-
pythermodb_settings/models/source.py,sha256=
|
11
|
+
pythermodb_settings/models/source.py,sha256=0yU21YpYSqnew8rjTrlRuoWAuSAlUvMOebC5X0Sr8X4,1325
|
12
12
|
pythermodb_settings/utils/__init__.py,sha256=eDbjrvNnRVt3SJ4d0h0BJtHoxQ9hemRQ7oN0An6-nZ0,228
|
13
13
|
pythermodb_settings/utils/component_utils.py,sha256=Ko8PG1qG9A_mYV524Vews8H30mFRwowzhJmVpziKcV8,5755
|
14
|
-
pythermodb_settings-0.1.
|
15
|
-
pythermodb_settings-0.1.
|
16
|
-
pythermodb_settings-0.1.
|
17
|
-
pythermodb_settings-0.1.
|
18
|
-
pythermodb_settings-0.1.
|
14
|
+
pythermodb_settings-0.1.6.dist-info/licenses/LICENSE,sha256=pHRAx3wjVKpt2ec3NyhntY6_bGgJqV2SyE8xNUJ7MYE,1090
|
15
|
+
pythermodb_settings-0.1.6.dist-info/METADATA,sha256=aLXZ4c5k_y1QB2tShu0KJ27iuygjgLM-WygyOjYuPOw,4894
|
16
|
+
pythermodb_settings-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
17
|
+
pythermodb_settings-0.1.6.dist-info/top_level.txt,sha256=6IdVIbW__wHFsKQYx7DDnXArm10qiJVIyaoSEFQylK4,20
|
18
|
+
pythermodb_settings-0.1.6.dist-info/RECORD,,
|
File without changes
|
{pythermodb_settings-0.1.5.dist-info → pythermodb_settings-0.1.6.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|