mattip / c_from_python

Calling C from Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling C from Python

Comparing CFFI, Ctypes, Cython, CPPYY

A comparison of four ways to call from python into a c function. I show the advantages and disadvantages of all 4: boilerplate required, maintenance, speed.

If you read all the way through, there is a suprise at the end. No fair peeking.

An earlier version of this notebook was part of this talk at PyCon Israel 2017

About

Calling C from Python

License:Other


Languages

Language:Jupyter Notebook 98.5%Language:Python 0.9%Language:C 0.6%