grai_client
endpoints
utilities

validated_uuid

def validated_uuid(val: Union[str, UUID])

Arguments:

val (Union[str, UUID]):

Returns:

is_valid_uuid

def is_valid_uuid(val: Union[str, UUID])

Arguments:

val (Union[str, UUID]):

Returns:

response_status_check

def response_status_check(resp: Response) -> Response

Arguments:

resp (Response):

Returns:

serialize_obj

def serialize_obj(obj: Dict) -> bytes

Arguments:

obj (Dict):

Returns:

add_query_params

def add_query_params(url: str, params: dict) -> str

Arguments:

url (str): params (dict):

Returns:

handles_bad_metadata

def handles_bad_metadata(
    fallback_meta: Type[MalformedMetadata]
) -> Callable[[Callable[[Dict], T]], Callable[[Dict], T]]

Arguments:

fallback_meta:

Returns:

expects_unique_query

def expects_unique_query(fn) -> Callable[..., T]