Cloudera AI Inference
Project description
cloudera-ai-inference
Python client for Cloudera AI Inference service.
Installation
pip install cloudera-ai-inference
Quick Start
from cloudera.ai.inference import create_client, ServingListEndpointsRequest
client = create_client(
host="https://<your-inference-service-domain>",
token="<CDP_TOKEN>",
)
# List endpoints
response = client.serving_list_endpoints(
ServingListEndpointsRequest(namespace="serving-default")
)
for ep in response.endpoints:
print(ep.name, ep.state)
Authentication
Generate a CDP workload auth token:
CDP_TOKEN=$(cdp iam generate-workload-auth-token --workload-name DE | jq -r '.token')
Then pass it to create_client:
client = create_client(host="https://...", token=CDP_TOKEN)
SSL
To disable SSL verification (development/self-signed certs only):
client = create_client(host="https://...", token="...", verify_ssl=False)
API Reference
Full API documentation: https://docs.cloudera.com/machine-learning/cloud/ai-inference/topics/ml-caii-use-caii.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cloudera_ai_inference-1.13.0.2000b17.tar.gz.
File metadata
- Download URL: cloudera_ai_inference-1.13.0.2000b17.tar.gz
- Upload date:
- Size: 78.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bedee14efe5360d117747803c6a7f75528c61d42e72cef92698c2daaff653fd2
|
|
| MD5 |
8e6131254eef44294ccef8fb4f729bb5
|
|
| BLAKE2b-256 |
02b313506489cc3bcbb76d0d674eee39f06908fa10e7d946aaf4ebc8d07489fa
|