pythermodb-settings 0.1.0__py3-none-any.whl → 0.1.1__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.
@@ -1,5 +1,5 @@
1
1
  # NOTE: app info
2
- __version__ = "0.1.0"
2
+ __version__ = "0.1.1"
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"
@@ -9,6 +9,7 @@ from .references import (
9
9
  CustomReference
10
10
  )
11
11
  from .rules import ComponentRule
12
+ from .source import ComponentThermoDBSource
12
13
 
13
14
  __all__ = [
14
15
  "Component",
@@ -19,5 +20,6 @@ __all__ = [
19
20
  "ComponentReferenceThermoDB",
20
21
  "ReferencesThermoDB",
21
22
  "CustomReference",
22
- "ComponentRule"
23
+ "ComponentRule",
24
+ "ComponentThermoDBSource"
23
25
  ]
@@ -0,0 +1,28 @@
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
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythermodb-settings
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Add your description here
5
5
  Author-email: Sina Gilassi <sina.gilassi@gmail.com>
6
6
  License-Expression: MIT
@@ -1,15 +1,16 @@
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=ciuNeBHNLi61PAtqKVOUd4Fyy4G2fO3JRPxMSkhw1FM,379
5
- pythermodb_settings/models/__init__.py,sha256=5OUwjWx1bgjiTIvRLP4vpcdysBgrPkPjH13IVuYr-Zg,527
4
+ pythermodb_settings/configs/about.py,sha256=u2mzTrfBlAFtmioyFqeqD-ZylIlDApw_ShREQfxbgnU,379
5
+ pythermodb_settings/models/__init__.py,sha256=wnGQvIfLS80epMf_MtTVlnz-RojxHci7qpkxm4phRpY,604
6
6
  pythermodb_settings/models/components.py,sha256=baeEklB9ULoIx_iSkPSWty85TK912ZDX4RAa64qje0k,1194
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=_MicXRkUdmZLMiuQEhMm2kJzmApHvz_CnjLaxxnueLg,5399
10
10
  pythermodb_settings/models/rules.py,sha256=1a9CyTHwpQkZQXFJWDMrEcKQAOTOwquepoOQPGznTlc,74
11
- pythermodb_settings-0.1.0.dist-info/licenses/LICENSE,sha256=pHRAx3wjVKpt2ec3NyhntY6_bGgJqV2SyE8xNUJ7MYE,1090
12
- pythermodb_settings-0.1.0.dist-info/METADATA,sha256=V60YwBYoXryVdr0QPu-trzDbiufWzZos3tBhQqvnCLo,4894
13
- pythermodb_settings-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- pythermodb_settings-0.1.0.dist-info/top_level.txt,sha256=6IdVIbW__wHFsKQYx7DDnXArm10qiJVIyaoSEFQylK4,20
15
- pythermodb_settings-0.1.0.dist-info/RECORD,,
11
+ pythermodb_settings/models/source.py,sha256=liN4v1o8mqxclz8khca4anTOzLHO-5gCnK0MsfVgxGY,533
12
+ pythermodb_settings-0.1.1.dist-info/licenses/LICENSE,sha256=pHRAx3wjVKpt2ec3NyhntY6_bGgJqV2SyE8xNUJ7MYE,1090
13
+ pythermodb_settings-0.1.1.dist-info/METADATA,sha256=7wCHXxfKXcyGQFhKQZ52_WK0M6cWnDAQdGXz0lCHigE,4894
14
+ pythermodb_settings-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ pythermodb_settings-0.1.1.dist-info/top_level.txt,sha256=6IdVIbW__wHFsKQYx7DDnXArm10qiJVIyaoSEFQylK4,20
16
+ pythermodb_settings-0.1.1.dist-info/RECORD,,