Registry / ai-ml / ogx-client

ogx-client

JSON →
library1.0.2pypypi✓ verified 79d ago

The official Python library for the OGX Client API, providing bindings to interact with OGX's AI and data services. Version 1.0.2, actively maintained, with releases roughly every 2-3 months.

pip install ogx-client
INSTALL
IMPORT
SIG · OGX-CLIENT
O
ogx-client
ai-mlpythonv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from ogx_client import Client
from ogx_client import OGXClient
AsyncClient
from ogx_client import AsyncClient
Agent
from ogx_client import Agent

Initialize client with API key from environment and make a basic query.

import os from ogx_client import OGXClient client = OGXClient( api_key=os.environ.get("OGX_API_KEY", "") ) # Send a query response = client.query("Hello, world!") print(response)
Debug
Known issues
breakingIn version 1.0.0, the import path changed from `ogx` to `ogx_client`. Old code `from ogx import Client` will fail.
fix
Change to `from ogx_client import OGXClient`.
affects: >=1.0.0
breakingThe `api_key` parameter is now required in the constructor. Previously it could be omitted and fallback to a config file.
fix
Always pass `api_key` either directly or via environment variable (OGX_API_KEY).
affects: >=1.0.0
deprecatedThe `.query()` method's `model` parameter is deprecated in favor of explicitly setting `model` in the client constructor.
fix
Set model during client initialization: `OGXClient(api_key=..., model='gpt-4')` instead of passing it per-request.
affects: 1.0.0 - 1.0.2
gotchaRate limits: The library does not automatically retry on 429 errors. You must implement exponential backoff manually.
fix
Wrap calls in a retry loop with backoff, or use a wrapper library like `tenacity`.
affects: all
Upgrade
Version history
1.0.2latest on PyPI · released May 13, 2026
Audit
Dependencies
requestsrequiredUsed for HTTP transport
pydanticrequiredData validation and settings management
Agent activity
6 hits · last 30 days
node
6
Resources
ogx-client — pip install ogx-client · libregistry