Saturday, June 1, 2019

Extending Python With C Libraries and the “ctypes” Module

An end-to-end tutorial of how to extend your Python programs with libraries written in C, using the built-in “ctypes” module. The built-in ctypes module is a powerful feature in Python, allowing you to use existing libraries in other languages by writting simple wrappers in Python itself. Unfortunately it can be a bit tricky to use. In this article we’ll explore some of the basics of ctypes. We’ll cover: Loading C libraries Calling a simple C function Passing mutable and... Original Source

https://codango.com/extending-python-with-c-libraries-and-the-ctypes-module/

I am happy to share this resource that we found. The content displayed on this page is property of its original author or their organization.

No comments:

Post a Comment