qmetrics.net

OpenAI Python

Official Python client for the OpenAI HTTP API

Python library for calling the OpenAI REST API from Python 3.10+ apps. It includes typed request and response models and sync or async HTTP clients.

Overview

The OpenAI Python library gives applications a structured way to call OpenAI’s HTTP APIs. It ships type definitions for parameters and responses and uses HTTPX-based synchronous and asynchronous clients generated from the project’s OpenAPI description.

Call patterns cover the Responses API for text generation, the older Chat Completions API, vision inputs from URLs or base64 data, streaming via server-sent events, file uploads, pagination helpers, and webhooks with optional signature verification.

The Realtime API path supports low-latency text and audio sessions over WebSockets, including function calling. Clients can use API keys, workload identity from Kubernetes, Azure, or Google Cloud, and optional X.509 mutual TLS modes for automated environments.

The SDK handles retries on certain errors, configurable timeouts, structured error types, and request ID capture for debugging failed calls.

Key features

  • Sync and async API clients
  • Responses and Chat Completions APIs
  • Streaming with server-sent events
  • Realtime WebSocket sessions
  • Workload identity authentication
  • Webhook signature verification
  • Auto-pagination for list endpoints
  • Typed Pydantic response models

Use cases

  • Backend apps calling OpenAI models
  • Streaming chat or completion flows
  • Realtime voice or multimodal clients
  • Automated jobs with cloud identity auth

Tags

Similar software

axios

Promise-based HTTP client for browser and Node.js

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

★ 109.5k⟳ 2 days agoMIT

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Hoppscotch

Web, desktop and CLI API development ecosystem

Hoppscotch lets developers send HTTP, WebSocket, GraphQL, and related API requests from a lightweight client. Collections, environments, teams, and sync help organize testing across devices.

★ 81k⟳ 5 days agoMIT
Open Source Alternative to:Postman

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

JSON Server

Zero-code mock REST API from JSON data files

JSON Server turns a JSON or JSON5 database file into a REST API for local prototyping. It supports filtering, sorting, pagination, embedding relations, and static assets.

★ 75.7k⟳ 8 months agoMIT