The Credal Python Library provides convenient access to the Credal API from applications written in Python.
pip install --upgrade credal
Docs for the API endpoints available through the SDK can be found here.
from credal.client import CredalApi
client = CredalApi(
api_key="YOUR_API_KEY",
)
from credal.client import AsyncCredalApi
client = AsyncCredalApi(
api_key="YOUR_API_KEY",
)
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version. This way, you can install the same version each time without breaking changes.