cloudgpu 0.1.0__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,15 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional, Protocol
4
+
5
+ from cloudgpu.models import AdapterCapabilities, GpuOffer
6
+
7
+
8
+ class InventoryAdapter(Protocol):
9
+ """调度核心只依赖这个入口;平台特有方法可按需额外提供。"""
10
+
11
+ platform: str
12
+ capabilities: AdapterCapabilities
13
+
14
+ def list_offers(self, *, kind: Optional[str] = None) -> list[GpuOffer]:
15
+ ...