ctypes is a python built-in library that invokes exported functions from native compiled libraries.
ctypes
Note: Since this library handles compiled code, it is relatively OS dependent.
ctypes arrays
Wrapping functions for ctypes
Basic usage
Common pitfalls
Basic ctypes object
Complex usage