v/examples/call_v_from_python
Saptak Bhoumik 5e85d4cb39
examples: show how to call a simple v module from python (#13105)
2022-01-09 19:53:36 +02:00
..
README.md examples: show how to call a simple v module from python (#13105) 2022-01-09 19:53:36 +02:00
test.py examples: show how to call a simple v module from python (#13105) 2022-01-09 19:53:36 +02:00
test.v examples: show how to call a simple v module from python (#13105) 2022-01-09 19:53:36 +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