Registry / llm-agents / diracx-client

diracx-client

JSON →
library0.3.0pypypi✓ verified 28d ago

The DiracX Python Client Library, currently at version 0.0.12, provides a Pythonic interface for interacting with the DiracX AI platform. It allows developers to integrate advanced AI functionalities into their applications by accessing features like model listing and AI task creation. The library is under active development, with frequent pre-1.0 releases.

pip install diracx-client
INSTALL
IMPORT
SIG · DIRACX-CLIENT
D
diracx-client
llm-agentspythonv0.3.0
Install
9.5s avg
Import
—
Disk
84MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.0.1a17 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 13s
py 3.11
✓ —
✓ 9.7s
py 3.12
✓ —
✓ 7.5s
py 3.13
✓ —
✓ 7.8s
py 3.9
✕ build_error
✕ build_error
84MB installed
● package 84MB
Code
Verified usage

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

DiracXClient
✓ from diracx import DiracXClient
✗ from diracx import DiracXClient

This quickstart demonstrates how to initialize the DiracX client using API keys from environment variables and fetch a list of available AI models. Ensure 'DIRACX_API_KEY' and 'DIRACX_API_SECRET' are configured in your environment.

import os from diracx_client import DiracXClient # Ensure DIRACX_API_KEY and DIRACX_API_SECRET are set as environment variables # For local development, you might use a .env file and python-dotenv. # e.g., os.environ['DIRACX_API_KEY'] = 'your_key' # os.environ['DIRACX_API_SECRET'] = 'your_secret' api_key = os.environ.get("DIRACX_API_KEY", "") api_secret = os.environ.get("DIRACX_API_SECRET", "") if not api_key or not api_secret: print("Error: DIRACX_API_KEY and DIRACX_API_SECRET environment variables must be set.") # In a real application, you might raise an exception or handle this more gracefully. exit(1) # Initialize the DiracXClient client = DiracXClient(api_key=api_key, api_secret=api_secret) # Example: Fetch available models try: models_response = client.models.list_all() print("Successfully fetched models.") if models_response.data: print(f"First model ID: {models_response.data[0].id}") print(f"First model Name: {models_response.data[0].name}") else: print("No models found.") except Exception as e: print(f"Error fetching models: {e}")
diracx --version
Debug
Known issues
breakingThe library is currently in a pre-1.0 state (0.0.x versions). This means the API is unstable and subject to frequent breaking changes without adhering to semantic versioning (e.g., a minor version bump might introduce breaking changes).
fix
Always refer to the latest documentation and examples for your specific `0.0.x` version. Pin exact versions in `requirements.txt` to avoid unexpected breakage in production: `diracx-client==0.0.12`.
affects: <1.0.0
gotchaThe library has a strict dependency on Pydantic V2 (`pydantic>=2.7.0`). If your project also uses Pydantic V1, this will lead to package conflicts or runtime errors due to incompatible APIs. Ensure your project's Pydantic usage is compatible with V2.
fix
Update any other dependencies requiring Pydantic to their V2 compatible versions, or refactor your code to use Pydantic V2 directly. If a conflict is unavoidable, consider isolating environments or using alternative data validation libraries.
affects: >=0.0.1
gotchaAuthentication relies on `DIRACX_API_KEY` and `DIRACX_API_SECRET` environment variables. If these are not correctly set, the client initialization will fail or API calls will be unauthorized, often leading to `exit(1)` in example scripts.
fix
Ensure both `DIRACX_API_KEY` and `DIRACX_API_SECRET` are properly configured in your environment before running the application. For local development, `python-dotenv` can be used to load these from a `.env` file.
affects: >=0.0.1
Upgrade
Version history
0.3.0latest on PyPI · released Jul 7, 2026
Audit
Dependencies
httpxrequiredHTTP client for API communication.
pyjwtrequiredJSON Web Token handling for authentication.
python-dotenvrequiredFor loading environment variables (e.g., API keys) from .env files. While common for examples, it's a direct dependency.
pydanticrequiredData validation and settings management, specifically requires Pydantic V2.
Agent activity
23 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
diracx-client — pip install diracx-client · libregistry