This is a demo on how to call a swift function from python
and vice versa via ctypes
(https://docs.python.org/3/library/ctypes.html)
To build the swift code into a dynamic library execute:
swift build
To run the python script execute:
python3 demo.py