hypercli-sdk 0.6.0__tar.gz → 0.7.0__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.
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/PKG-INFO +1 -1
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/instances.py +20 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/pyproject.toml +1 -1
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/.gitignore +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/README.md +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/__init__.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/billing.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/client.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/config.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/files.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/http.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/job/__init__.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/job/base.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/job/comfyui.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/job/gradio.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/jobs.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/logs.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/renders.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/hypercli/user.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/tests/test_apply_params.py +0 -0
- {hypercli_sdk-0.6.0 → hypercli_sdk-0.7.0}/tests/test_graph_to_api.py +0 -0
|
@@ -166,6 +166,26 @@ class Instances:
|
|
|
166
166
|
return pricing.get_price(region, interruptible)
|
|
167
167
|
return None
|
|
168
168
|
|
|
169
|
+
def capacity(self, gpu_type: str = None) -> dict:
|
|
170
|
+
"""Get real-time GPU capacity by type and region.
|
|
171
|
+
|
|
172
|
+
Returns idle (running with available GPUs) and launching (booting) counts.
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
gpu_type: Optional filter by GPU type (e.g., 'l40s', 'h100')
|
|
176
|
+
|
|
177
|
+
Returns:
|
|
178
|
+
Dict with 'idle' and 'launching' nested dicts:
|
|
179
|
+
{
|
|
180
|
+
"idle": {"rtxpro6000": {"oh": 2, "va": 1}},
|
|
181
|
+
"launching": {"rtxpro6000": {"fi": 1}}
|
|
182
|
+
}
|
|
183
|
+
"""
|
|
184
|
+
params = {}
|
|
185
|
+
if gpu_type:
|
|
186
|
+
params["gpu_type"] = gpu_type
|
|
187
|
+
return self._http.get("/api/jobs/instances/capacity", params=params if params else None)
|
|
188
|
+
|
|
169
189
|
def list_available(self, gpu_type: str = None, region: str = None) -> list[dict]:
|
|
170
190
|
"""List available GPU configurations, optionally filtered"""
|
|
171
191
|
types = self.types()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|