/working-with-foreign-functions

Python offers a rich set of APIs that make it possible to build wrappers for foreign functions written in another language (such as C/C++) and compiled into shared libraries. This article introduces some basic techniques that will allow you to start using shared libraries in your projects.

Primary LanguageJupyter NotebookMIT LicenseMIT

working-with-foreign-functions

Python offers a rich set of built-in capabilities that make it possible to invoke (or wrap in a Python function) foreign functions that have been implemented using another language (such as C/C++) and compiled into shared libraries. Within the context of a motivating example that involves utilizing the GNU C Library, this article introduces some basic techniques that will allow you to start using shared libraries in your projects.