This is a small proof of concept on how to use cython within a python project. The cython file (pyx) contain one function calculating the fibonacci sequence. The main file import the compiled library and use the function.
.
├── LICENSE
├── main.py
├── README.md
├── setup.py
└── src
└── fibonacci.pyx
Dependencies needed are setuptools and cython
python3 ./setup.py build_ext --inplace
python3 ./main.py
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597