This can be useful when you need to wrap a C library, which is often needed with older libraries and interfaces to older hardware.

Simple Example:

Simple Example using Visual Studio:

This tutorial is very easy to read:

This is a nice complete tutorial:

ctypes provide a native way for python to make calls to C libraries.