ctypes - A foreign function library for Python, Python Software Foundation, 2024 - The official reference for Python's standard library module for calling functions in shared libraries.
CFFI Documentation, Armin Rigo, Maciej Fijalkowski, 2024 - Official documentation for CFFI, an alternative foreign function interface for Python.
Extending PyTorch with C++ and CUDA, PyTorch Authors, 2025 (PyTorch) - Provides guidance on building custom PyTorch extensions, which is the alternative to FFI discussed in the section.