Metadata-Version: 2.4
Name: cloudera.ai.inference
Version: 1.13.0.2000b17
Summary: Cloudera AI Inference
Home-page: https://docs.cloudera.com/machine-learning/cloud/ai-inference/topics/ml-caii-use-caii.html
Author: OpenAPI Generator community
Author-email: OpenAPI Generator Community <team@openapitools.org>
License: Apache-2.0
Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
Keywords: OpenAPI,OpenAPI-Generator,Cloudera AI Inference
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: urllib3<3.0.0,>=2.1.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: home-page

# cloudera-ai-inference

Python client for [Cloudera AI Inference service](https://docs.cloudera.com/machine-learning/cloud/ai-inference/topics/ml-caii-use-caii.html).

## Installation

```
pip install cloudera-ai-inference
```

## Quick Start

```python
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:

```bash
CDP_TOKEN=$(cdp iam generate-workload-auth-token --workload-name DE | jq -r '.token')
```

Then pass it to `create_client`:

```python
client = create_client(host="https://...", token=CDP_TOKEN)
```

## SSL

To disable SSL verification (development/self-signed certs only):

```python
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
