Metadata-Version: 2.4
Name: datarisk-mlops-codex
Version: 4.0.2
Summary: A Python SDK for interacting with the DataRisk MLOps API
License-Expression: MIT
License-File: LICENSE.txt
Requires-Python: >=3.10
Requires-Dist: cloudpickle>=3.1.1
Requires-Dist: lazy-imports>=1.0.1
Requires-Dist: loguru>=0.7.3
Requires-Dist: pandas>=2.3.3
Requires-Dist: plotly>=6.3.1
Requires-Dist: pydantic>=2.12.0
Requires-Dist: requests==2.32.5
Requires-Dist: seaborn>=0.13.2
Description-Content-Type: text/markdown

# Datarisk MLOps - SDK

![ikjo](https://img.shields.io/pypi/v/datarisk-mlops-codex)

A Python SDK for interacting with the MLOps API, providing tools for training, deploying, and monitoring machine learning models.

---

## Table of Contents

- [Installation](#installation)
- [Getting Started](#example-of-usage)
- [Example of Usage](#example-of-usage)
- [Support](#support)
- [Contributing](#contributing)

---

## Installation

```bash
  pip install datarisk-mlops-codex
```

---

## Getting started

To use the SDK, you must be logged in to the application. This can be done by importing one of the provided clients, as shown in the example below
```python
from mlops_codex.model import MLOpsModelClient

client = MLOpsModelClient()
```

## Example of usage

```python
PATH = './samples/asyncModel/'

# Deploying a new model
model = client.create_model(
    model_name='Teste notebook Async',
    model_reference='score',
    source_file=PATH+'app.py',
    model_file=PATH+'model.pkl',
    requirements_file=PATH+'requirements.txt',
    schema=PATH+'schema.csv', 
    python_version='3.9',
    operation="Async",
    input_type='csv',
    group='datarisk'
)

PATH = './samples/asyncModel/'
execution = model.predict(data=PATH+'input.csv', group_token='TODO', wait_complete = False)
```


There's also some [example](https://github.com/datarisk-io/mlops_codex/tree/master/notebooks) notebooks.

---

## Support

* For help or questions, visit the [documentation](https://datarisk-io.github.io/mlops_codex)

---

## Contributing

* To learn more about making a contribution to datarisk-mlops-codex, please see our [Contributing guide](CONTRIBUTING.md).
