cython

Write C extensions for Python code and compile them efficiently.

brewmacoslinux
Try with needOr install directly
Source

About

Compiler for writing C extensions for the Python language

Commands

cythoncythonize

Examples

compile a Python file to C code$ cython mymodule.pyx
build and compile multiple Cython files at once$ cythonize -i *.pyx
generate C code from Cython with optimizations$ cython -O --cplus myfile.pyx
check Cython code for errors without compiling$ cython --check mymodule.pyx
convert Python to C extension for faster performance$ cython -3 fast_code.pyx && gcc -shared fast_code.c -o fast_code.so