Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudera_ai_inference-1.13.0.2000b17.tar.gz (78.6 kB view details)

Uploaded Source

File details

Details for the file cloudera_ai_inference-1.13.0.2000b17.tar.gz.

File metadata

File hashes

Hashes for cloudera_ai_inference-1.13.0.2000b17.tar.gz
Algorithm Hash digest
SHA256 bedee14efe5360d117747803c6a7f75528c61d42e72cef92698c2daaff653fd2
MD5 8e6131254eef44294ccef8fb4f729bb5
BLAKE2b-256 02b313506489cc3bcbb76d0d674eee39f06908fa10e7d946aaf4ebc8d07489fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page