https://github.com/rnag/sample-rust-bindings
sample project for rust bindings with python
https://github.com/rnag/sample-rust-bindings
Last synced: 10 months ago
JSON representation
sample project for rust bindings with python
- Host: GitHub
- URL: https://github.com/rnag/sample-rust-bindings
- Owner: rnag
- Created: 2022-06-09T04:25:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T20:03:04.000Z (over 3 years ago)
- Last Synced: 2025-01-29T23:41:29.292Z (12 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TODO.py
===========
[](https://github.com/USER/TODO.py/actions?query=workflow%3ACI)
[](https://pepy.tech/project/TODO)
Python bindings for Rust code.
## Installation
TODO.py is available for Python 3.7+ via pip:
```bash
$ pip install TODO
```
## Usage
```python
import TODO
result = TODO.my_function(123)
print(result)
```
## Development
*TODO.py* uses [PyO3](https://github.com/PyO3/pyo3) for binding Rust
to Python. It uses [Maturin](https://github.com/PyO3/maturin) to coerce the
Rust build into a `pip` and PyPI-compatible wheel.
Assuming that you have Rust and a relatively recent Python 3 installed,
the following should just work:
```bash
$ make develop
$ source env/bin/activate
```
A local build of *TODO.py* will be created and installed in your virtual environment.