I feel like this might be the first use case / request for PEP-19: The Development of PocketRS, Ongoing Client Support, and Feature-Rich Documentation - #7 by shane, as OP insinuates that a C-interface is needed (cc @Mike_JAMSO_NodeFolio)
Am I reading this the right way?