301  openai-python(1) - Kailash Tool Reference

301.1 openai-python

openai-python - OpenAI Python SDK.

Layer OPS
Category o-05-ai-engineering-sdks-dev-env
Safety class safe
Licence Apache-2.0
Upstream github.com/openai/openai-python

301.1.1 NAME

openai-python - OpenAI Python SDK.

301.1.2 SYNOPSIS & usage

Derived from the upstream README at generation time; verify against --help where the tool is installed.

# install from PyPI
pip install openai
from openai import OpenAI
from openai.auth import azure_managed_identity_token_provider

client = OpenAI(
    workload_identity={
        "identity_provider_id": "idp-123",
        "service_account_id": "sa-456",
        "provider": azure_managed_identity_token_provider(
            resource="https://management.azure.com/",
        ),
    },
)

301.1.3 DESCRIPTION (upstream)

The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.10+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by HTTPX2. It is generated from our OpenAPI specification. The REST API documentation can be found on platform.openai.com. The full API of this library can be found in api.md. pip install openai The full API of this library can be found in [api.md](https://git

301.1.4 CONFIGURATION (detected)

Config-surface markers detected in the upstream README (8 matches, e.g. environment variable, environment variable). A full config reference page for this tool is queued under the config-page policy — this line is the detection record, not the page.

301.1.5 SEE ALSO


ref: pin - verified 2026-10-14