Response¶
qgendapy.response
¶
T = TypeVar('T')
module-attribute
¶
QGendaResponse(data, status_code, headers, items=list())
dataclass
¶
Bases: Generic[T]
Wrapper around a QGenda API response.
data
instance-attribute
¶
status_code
instance-attribute
¶
headers
instance-attribute
¶
items = field(default_factory=list)
class-attribute
instance-attribute
¶
__iter__()
¶
__bool__()
¶
__getitem__(index)
¶
from_httpx(resp, model=None)
classmethod
¶
Build a QGendaResponse from an httpx.Response.
Raises APIError for 4xx/5xx status codes.