Yes. See cairocffi/mkconstants.py. It should be possible to extend it to also read `pycairo.h`/`py3cairo.h` and have `Pycairo_CAPI_t` defined in constants.py. I’m against using `verify()` though, as this requires users to have a C compiler set up.