v/examples/call_v_from_python
Mihai Galos b8d656b308
examples: enhance the call_v_from_python example, with a fn accepting 2 f64 params (#13480)
2022-02-16 09:12:49 +02:00
..
README.md
test.py examples: enhance the call_v_from_python example, with a fn accepting 2 f64 params (#13480) 2022-02-16 09:12:49 +02:00
test.v examples: enhance the call_v_from_python example, with a fn accepting 2 f64 params (#13480) 2022-02-16 09:12:49 +02:00

README.md

A simple example to show how to call a function written in v from python

Step 1: Compile the v code to a shared library using v -shared -prod test.v

Step 2: Run the python file using python3 test.py