Migrate to https://github.com/kitsuyui/rust-playground
This repo is intended to show how to build rust-python binding packages.
amazing-calc
provides very simple function as following:
pub fn my_calc(a: i64, b: i64, c: i64) -> String {
((a + b) * c).to_string()
}
my_calc(1, 2, 3) // => "9"
See also /python/README.md
Warning: Currently this package is only distributed on TestPyPI.
pip install -i https://test.pypi.org/simple/ amazing-calc
from amazing_calc import my_calc
my_calc(1, 2, 3) # => '9'
cd python
pipenv run build
The 3-Clause BSD License. See also LICENSE file.