matrice-compute 0.1.29__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.
@@ -0,0 +1,20 @@
1
+ """Module providing __init__ functionality."""
2
+
3
+ import subprocess
4
+
5
+ from matrice_common.utils import dependencies_check
6
+
7
+ dependencies_check(
8
+ ["docker", "psutil", "cryptography", "notebook", "aiohttp", "kafka-python"]
9
+ )
10
+
11
+ subprocess.run( # Re-upgrade docker to avoid missing DOCKER_HOST connection error
12
+ ["pip", "install", "--upgrade", "docker"],
13
+ check=True,
14
+ stdout=subprocess.DEVNULL, # suppress normal output
15
+ stderr=subprocess.DEVNULL # suppress warnings/progress
16
+ )
17
+
18
+ from matrice_compute.instance_manager import InstanceManager # noqa: E402
19
+
20
+ __all__ = ["InstanceManager"]