ProvenPin Install

Stacks

respx recipes

7 tested respx integration recipes with httpx, tenacity, Pydantic, openai. Exact pinned versions and a last-passed receipt, last run 2026-10-15.

passed5/5python

httpx + tenacity async retries honoring Retry-After, tested with respx

Wrap async httpx calls in tenacity AsyncRetrying that retries 429 and 5xx, honors Retry-After, and patches the wait to zero in tests with respx mocks.

httpx@0.28.1tenacity@9.2.1respx@0.23.1
last passed 2026-10-15 13:18 UTC
passed3/3python

httpx async API client + respx mocks

A typed async API client on httpx with retries on 5xx and Pydantic parsing, tested offline with respx route mocks.

httpx@0.28.1respx@0.23.1pydantic@2.14.1
last passed 2026-10-15 13:15 UTC
passed4/4python

httpx client + tenacity retries with backoff, tested with respx

Retry transient HTTP failures (5xx, 429, timeouts) with tenacity around an httpx client, honoring a max attempt count, tested offline with respx.

httpx@0.28.1tenacity@9.2.1respx@0.23.1
last passed 2026-10-15 13:15 UTC
passed4/4python

httpx OAuth2 client-credentials client with cached tokens and Link pagination

A sync httpx client that fetches and caches an OAuth2 client-credentials token, refreshes it on 401, and follows Link-header pagination, tested offline with respx routes.

httpx@0.28.1respx@0.23.1pytest@9.1.1
last passed 2026-10-15 13:15 UTC
passed5/5python

OpenAI chat.completions.parse with Pydantic output + respx mocks

Get typed output from OpenAI chat.completions.parse using a Pydantic response_format, handle refusals and schema mismatches, and test offline with respx returning canned JSON.

openai@3.31.0respx@0.23.1pydantic@2.14.1
last passed 2026-10-15 13:17 UTC
passed3/3python

OpenAI Python SDK structured outputs, tested with respx

Call the OpenAI Python SDK and validate JSON output with Pydantic, testing success, malformed output and API errors offline by mocking HTTP with respx.

openai@3.31.0pydantic@2.14.1respx@0.23.1
last passed 2026-10-15 13:17 UTC
passed6/6python

Typed httpx client parsing into pydantic v2 models, tested with respx

An async httpx client that retries 5xx and transport errors, validates responses into pydantic v2 models, and is tested offline with respx route mocks.

httpx@0.28.1pydantic@2.14.1respx@0.23.1
last passed 2026-10-15 13:15 UTC

Used together with respx

httpxtenacityPydanticopenai