diff --git a/README.md b/README.md index 87a1801..2c2462d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + # pybind_example A simple math pybind11 example that exports C++ functions to Python with Bazel. @@ -16,4 +18,13 @@ INFO: Build completed successfully, 11 total actions INFO: Build completed successfully, 11 total actions ``` +### Usage + +```python +from module import math + +print(math.add(1, 2)) # 3 +print(math.subtract(5, 3)) # 2 +``` + Special thanks to jart@ for guidance as well as the TensorFlow team for python runtime headers.