metisprism 0.0.1__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.
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.5
2
+ Name: metisprism
3
+ Version: 0.0.1
4
+ Summary: MetisPrism setup helper: shows how to install MetisPrism tools from your account and checks your local Python and GPU setup.
5
+ Project-URL: Homepage, https://metisprism.ai
6
+ Author: MetisAI Labs
7
+ License-Expression: Apache-2.0
8
+ Keywords: gpu,metisprism,ml-infrastructure
9
+ Classifier: Development Status :: 2 - Pre-Alpha
10
+ Classifier: Environment :: Console
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+
16
+ # metisprism
17
+
18
+ MetisPrism setup helper. This package does not contain the MetisPrism SDK or CLI. It tells you how to install them from
19
+ your MetisPrism account and checks your local setup:
20
+
21
+ ```
22
+ pip install metisprism
23
+ python -m metisprism_reserved
24
+ ```
25
+
26
+ It reads only your local environment (Python version, platform, NVIDIA or AMD tools on PATH, an installed PyTorch) and
27
+ sends nothing over the network.
@@ -0,0 +1,12 @@
1
+ # metisprism
2
+
3
+ MetisPrism setup helper. This package does not contain the MetisPrism SDK or CLI. It tells you how to install them from
4
+ your MetisPrism account and checks your local setup:
5
+
6
+ ```
7
+ pip install metisprism
8
+ python -m metisprism_reserved
9
+ ```
10
+
11
+ It reads only your local environment (Python version, platform, NVIDIA or AMD tools on PATH, an installed PyTorch) and
12
+ sends nothing over the network.
@@ -0,0 +1,23 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.25"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "metisprism"
7
+ version = "0.0.1"
8
+ description = "MetisPrism setup helper: shows how to install MetisPrism tools from your account and checks your local Python and GPU setup."
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.9"
12
+ authors = [{ name = "MetisAI Labs" }]
13
+ keywords = ["metisprism", "gpu", "ml-infrastructure"]
14
+ classifiers = ["Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Environment :: Console"]
15
+
16
+ [project.scripts]
17
+ metisprism-doctor = "metisprism_reserved:main"
18
+
19
+ [project.urls]
20
+ Homepage = "https://metisprism.ai"
21
+
22
+ [tool.hatch.build.targets.wheel]
23
+ packages = ["src/metisprism_reserved"]
@@ -0,0 +1,47 @@
1
+ """MetisPrism setup helper: install guidance and a local environment check. Sends nothing over the network."""
2
+
3
+ import importlib.util
4
+ import platform
5
+ import shutil
6
+ import sys
7
+
8
+ __all__ = ["doctor", "main"]
9
+ __version__ = "0.0.1"
10
+
11
+ INSTALL = (
12
+ "The MetisPrism CLI and SDKs are installed from your MetisPrism account:\n"
13
+ " Studio -> Install the CLI (signed download), or ask your MetisPrism contact for access.\n"
14
+ "Docs: https://metisprism.ai"
15
+ )
16
+
17
+
18
+ def doctor() -> dict:
19
+ """Return a summary of the local environment relevant to running ML workloads with MetisPrism."""
20
+ report = {
21
+ "python": platform.python_version(),
22
+ "platform": f"{platform.system()} {platform.machine()}",
23
+ "nvidia_smi": shutil.which("nvidia-smi") is not None,
24
+ "rocm_smi": shutil.which("rocm-smi") is not None or shutil.which("amd-smi") is not None,
25
+ "torch": None,
26
+ "accelerators": 0,
27
+ }
28
+ if importlib.util.find_spec("torch") is not None:
29
+ try:
30
+ import torch # noqa: PLC0415
31
+
32
+ report["torch"] = torch.__version__
33
+ if torch.cuda.is_available():
34
+ report["accelerators"] = torch.cuda.device_count()
35
+ except Exception as exc: # a broken torch install is reported, not raised
36
+ report["torch"] = f"present but failed to import: {exc.__class__.__name__}"
37
+ return report
38
+
39
+
40
+ def main() -> int:
41
+ print(INSTALL)
42
+ print()
43
+ for key, value in doctor().items():
44
+ print(f" {key:13} {value}")
45
+ if sys.version_info < (3, 9):
46
+ print("\nPython 3.9 or newer is required by the MetisPrism SDK.")
47
+ return 0
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from . import main
4
+
5
+ sys.exit(main())