Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


# pybind_example
A simple math pybind11 example that exports C++ functions to Python with Bazel.

Expand All @@ -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.