Buckets:

download
raw
501 Bytes
from typing import List
RESOURCE_STATUS = ["active", "inactive"]
class Resource:
def __init__(self, cpu: int, accelerator: List[str], client):
self.cpus = cpu
self.accelerator = accelerator
self.client = client
self._status = "active"
def active(self):
return self._status == "active"
def set_status(self, status):
if status not in RESOURCE_STATUS:
raise ValueError(f"Invalid status {status}")
self._status = status

Xet Storage Details

Size:
501 Bytes
·
Xet hash:
74a616ac784b7d67f3da8518e8f08d89ca7ccaf7aa0482cdcfb8ba216ed619a8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.