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-clientVerified import paths — ran on the pinned version, not inferred.
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.
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`.
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.
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.