v/examples/call_v_from_python
Charles WANG 7f1cc44b04
examples: detect windows and use correct file in the call_v_from_python example (#13114)
2022-01-10 09:11:54 +02:00
..
README.md
test.py examples: detect windows and use correct file in the call_v_from_python example (#13114) 2022-01-10 09:11:54 +02:00
test.v

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