Python C API compatibilityΒΆ

The pythoncapi-compat project can be used to write a C or C++ extension supporting a wide range of Python versions with a single code base. It is made of the pythoncapi_compat.h header file and the upgrade_pythoncapi.py script.

Documentation:

This project is distributed under the Zero Clause BSD (0BSD) license and is covered by the PSF Code of Conduct.