Skip to content

Client

openapi_first.client

OpenAPIClient

OpenAPIClient(spec: Dict[str, Any], base_url: Optional[str] = None, client: Optional[httpx.Client] = None)

OpenAPI-first HTTP client (httpx-based).

  • One callable per operationId
  • Explicit parameters (path, query, headers, body)
  • No implicit schema inference or mutation

OpenAPIClientError

Bases: OpenAPIFirstError

Raised when an OpenAPI client operation fails.