cyphermed.types

Contains some shared types for properties

@define
class File:

Contains information for file uploads

File( payload: <class 'BinaryIO'>, file_name: Optional[str] = None, mime_type: Optional[str] = None)

Method generated by attrs for class File.

payload: <class 'BinaryIO'>
file_name: Optional[str]
mime_type: Optional[str]
def to_tuple(self) -> Tuple[Optional[str], BinaryIO, Optional[str]]:

Return a tuple representation that httpx will accept for multipart/form-data

@define
class Response(typing.Generic[~T]):

A response from an endpoint

Response( status_code: http.HTTPStatus, content: bytes, headers: MutableMapping[str, str], parsed: Optional[~T])

Method generated by attrs for class Response.

status_code: http.HTTPStatus
content: bytes
headers: MutableMapping[str, str]
parsed: Optional[~T]
FileJsonType = typing.Tuple[typing.Optional[str], typing.BinaryIO, typing.Optional[str]]
Unset = <class 'NoneType'>
UNSET = None