Metadata-Version: 2.1
Name: mlu-api
Version: 0.1.1
Summary: Python bindings for Cambricon's libraries
Author-Email: jklincn <jklincn@outlook.com>
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# MLU-API

Python bindings for Cambricon's libraries

## Usage

### Install

```
pip install mlu-api
```

### Example

```
from mlu_api import cndev

print(cndev.get_device_count())
```

## Development

### Build and Install

```
uv sync
uv pip install --no-build-isolation -e .
```

### Test

```
uv run -- pytest -s
```

### How to generate compile_command.json

```
ln -s build/cp310-cp310-linux_x86_64/compile_commands.json .
```

## Publish

```
sudo apt install patchelf
rm -rf dist
uv build
uv run auditwheel repair dist/*.whl --plat manylinux_2_34_x86_64
uv publish wheelhouse/mlu_api-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
```