Skip to main content
The pav-bio package wraps the REST API one to one: every resource has a list and a get, named after the endpoint (GET /v1/recalls is client.recalls.list()). Responses are typed models; lists page for you.

Install

Python 3.9+. Import it as pav_bio.

Authenticate

The client reads your key from PAV_API_KEY, or takes it directly.

List and get

Parameters are the endpoint’s query parameters. Multi-value filters take a list, and from is from_.

Pages

A list returns a pager. Iterating it follows next_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.

Async