gliquid 0.1.0__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.
gliquid/__init__.py ADDED
@@ -0,0 +1,72 @@
1
+ """gliquid — thermodynamic modeling of binary/ternary liquid phases from DFT + experimental data.
2
+
3
+ MIT License
4
+
5
+ Copyright (c) 2025 Joshua Willwerth
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ """
25
+
26
+ from importlib import import_module, metadata
27
+
28
+ # Public API façade (PEP 562): names resolve lazily so `import gliquid` stays light —
29
+ # no matplotlib/plotly/pymatgen import until the consuming submodule is actually needed.
30
+ # Changing this mapping changes the public surface and requires explicit sign-off.
31
+ _EXPORTS = {
32
+ "BinaryLiquid": "gliquid.binary",
33
+ "BLPlotter": "gliquid.binary",
34
+ "TernaryLiquidInterpolation": "gliquid.ternary",
35
+ "TLIPlotter": "gliquid.ternary",
36
+ "HSX": "gliquid.hsx",
37
+ "lower_convex_hull": "gliquid.hsx",
38
+ "ConvexHullEditor": "gliquid.hull_editor",
39
+ "SolutionModel": "gliquid.solution",
40
+ "RKPolyExp": "gliquid.solution",
41
+ "UNARY": "gliquid.phase",
42
+ "ComponentRef": "gliquid.phase",
43
+ "Phase": "gliquid.phase",
44
+ "identify_invariant_points": "gliquid.mpds",
45
+ "load_mpds_data": "gliquid.mpds",
46
+ "set_data_dir": "gliquid.config",
47
+ "ConfigError": "gliquid.config",
48
+ }
49
+
50
+ __all__ = [*_EXPORTS, "__version__"]
51
+
52
+ # Single-sourced from the git tag. Installed distributions carry it in their metadata; a
53
+ # built-but-uninstalled tree carries it in _version.py, written by the hatch-vcs build hook.
54
+ # A source tree with neither is genuinely unversioned, and says so rather than asserting a
55
+ # stale number -- no version literal belongs in this package.
56
+ try:
57
+ __version__ = metadata.version("gliquid")
58
+ except metadata.PackageNotFoundError:
59
+ try:
60
+ from gliquid._version import version as __version__
61
+ except ImportError:
62
+ __version__ = "0.0.0+unknown"
63
+
64
+
65
+ def __getattr__(name):
66
+ if name in _EXPORTS:
67
+ return getattr(import_module(_EXPORTS[name]), name)
68
+ raise AttributeError(f"module 'gliquid' has no attribute {name!r}")
69
+
70
+
71
+ def __dir__():
72
+ return sorted({*globals(), *_EXPORTS})
gliquid/_version.py ADDED
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '0.1.0'
22
+ __version_tuple__ = version_tuple = (0, 1, 0)
23
+
24
+ __commit_id__ = commit_id = None