Metadata-Version: 2.4
Name: kitsuyui_rust_playground
Version: 0.2.0
License-File: LICENSE
Author-email: kitsuyui <kitsuyui@kitsuyui.com>
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# kitsuyui-rust-playground

This repo is intended to show how to build rust-python binding packages.

```python
from kitsuyui_rust_playground import multiply_sum
multiply_sum(1, 2, 3)  # => '9'
```

`multiply_sum` is implemented by Rust (with PyO3). 
However it works as same as following python code:

```python
def multiply_sum(x: int, y: int, factor: int) -> str:
    return str((x + y) * factor)
```

## Development

Install development dependencies with [uv](https://docs.astral.sh/uv/).

```sh
cd python
uv sync --group dev
```

Run checks and tests with:

```sh
uv run poe check-all
uv run poe test
```

# LICENSE

The 3-Clause BSD License. See also LICENSE file.

- [PyO3](https://github.com/PyO3/pyo3) is licensed under the Apache-2.0 license.
- [Python](https://github.com/python/cpython) is licensed under the Python License.

