pythermodb-settings 0.1.5__tar.gz → 0.1.6__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 (24) hide show
  1. {pythermodb_settings-0.1.5/pythermodb_settings.egg-info → pythermodb_settings-0.1.6}/PKG-INFO +1 -1
  2. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pyproject.toml +1 -1
  3. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/configs/about.py +1 -1
  4. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/models/__init__.py +3 -2
  5. pythermodb_settings-0.1.6/pythermodb_settings/models/source.py +59 -0
  6. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6/pythermodb_settings.egg-info}/PKG-INFO +1 -1
  7. pythermodb_settings-0.1.5/pythermodb_settings/models/source.py +0 -28
  8. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/LICENSE +0 -0
  9. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/README.md +0 -0
  10. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/__init__.py +0 -0
  11. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/app.py +0 -0
  12. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/configs/__init__.py +0 -0
  13. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/models/components.py +0 -0
  14. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/models/conditions.py +0 -0
  15. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/models/configs.py +0 -0
  16. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/models/references.py +0 -0
  17. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/models/rules.py +0 -0
  18. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/utils/__init__.py +0 -0
  19. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings/utils/component_utils.py +0 -0
  20. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings.egg-info/SOURCES.txt +0 -0
  21. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings.egg-info/dependency_links.txt +0 -0
  22. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings.egg-info/requires.txt +0 -0
  23. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/pythermodb_settings.egg-info/top_level.txt +0 -0
  24. {pythermodb_settings-0.1.5 → pythermodb_settings-0.1.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythermodb-settings
3
- Version: 0.1.5
3
+ Version: 0.1.6
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.5"
7
+ version = "0.1.6"
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.5"
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
  ]
@@ -0,0 +1,59 @@
1
+ # import libs
2
+ from pydantic import (
3
+ BaseModel,
4
+ Field,
5
+ ConfigDict
6
+ )
7
+ # local
8
+ from .components import Component
9
+
10
+
11
+ class ComponentThermoDBSource(BaseModel):
12
+ '''
13
+ ThermoDB source containing `component` thermodb.
14
+
15
+ Attributes
16
+ ----------
17
+ component: Component
18
+ Component thermodb
19
+ source: str
20
+ Path to the thermodb file
21
+ '''
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
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
+ )
55
+
56
+ model_config = ConfigDict(
57
+ arbitrary_types_allowed=True,
58
+ extra="allow"
59
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythermodb-settings
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Add your description here
5
5
  Author-email: Sina Gilassi <sina.gilassi@gmail.com>
6
6
  License-Expression: MIT
@@ -1,28 +0,0 @@
1
- # import libs
2
- from pydantic import (
3
- BaseModel,
4
- Field,
5
- ConfigDict
6
- )
7
- # local
8
- from .components import Component
9
-
10
-
11
- class ComponentThermoDBSource(BaseModel):
12
- '''
13
- ThermoDB source containing component thermodb.
14
-
15
- Attributes
16
- ----------
17
- component: Component
18
- Component thermodb
19
- source: str
20
- Path to the thermodb file
21
- '''
22
- component: Component
23
- source: str
24
-
25
- model_config = ConfigDict(
26
- arbitrary_types_allowed=True,
27
- extra="allow"
28
- )