pav-bio package mirrors the REST API. Each resource has a list and a
get method named after its endpoint: GET /v1/recalls is
client.recalls.list(). Responses are typed models, and lists follow pages
for you.
Install
pav_bio.
Authenticate
The client reads your key fromPAV_API_KEY, or takes it directly.
List and get
from is from_.
Pages
A list returns a pager. Iterating it followsnext_cursor until the last
page; iter_pages() gives each page with its total.
Errors
Each error status has its own exception;body.error carries code,
message and request_id.