Buckets:

download
raw
205 Bytes
from fastapi import HTTPException
from typing import Optional, TypeVar
T = TypeVar("T")
def or_404(item: Optional[T]) -> T:
if not item:
raise HTTPException(status_code=404)
return item

Xet Storage Details

Size:
205 Bytes
·
Xet hash:
f3817bbf226fcb811f99fcf4a40626f26c52e9d742104713e4f7e9fb049cc9e0

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