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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypercli-sdk
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: Python SDK for HyperCLI - GPU orchestration and LLM API
5
5
  Project-URL: Homepage, https://hypercli.com
6
6
  Project-URL: Documentation, https://docs.hypercli.com
@@ -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()
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "hypercli-sdk"
7
- version = "0.6.0"
7
+ version = "0.7.0"
8
8
  description = "Python SDK for HyperCLI - GPU orchestration and LLM API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes