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.
- matrice_compute/__init__.py +20 -0
- matrice_compute/action_instance.py +2023 -0
- matrice_compute/actions_manager.py +467 -0
- matrice_compute/actions_scaledown_manager.py +57 -0
- matrice_compute/compute_operations_handler.py +490 -0
- matrice_compute/instance_manager.py +470 -0
- matrice_compute/instance_utils.py +1266 -0
- matrice_compute/prechecks.py +538 -0
- matrice_compute/py.typed +0 -0
- matrice_compute/resources_tracker.py +842 -0
- matrice_compute/scaling.py +1395 -0
- matrice_compute/shutdown_manager.py +314 -0
- matrice_compute/task_utils.py +77 -0
- matrice_compute-0.1.29.dist-info/METADATA +28 -0
- matrice_compute-0.1.29.dist-info/RECORD +18 -0
- matrice_compute-0.1.29.dist-info/WHEEL +5 -0
- matrice_compute-0.1.29.dist-info/licenses/LICENSE.txt +21 -0
- matrice_compute-0.1.29.dist-info/top_level.txt +1 -0
|
@@ -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"]
|