Not sure if it helps but... I made a small library to unify drawing API for various backends. So far it only supports "vector" drawing. It does not provide you with Cairo but at least you can have the same code for PyCairo as well as for Pythonista. See https://github.com/xxao/pero
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Best posts made by xxao
-
RE: Import cairo
-
Pero - Simply draw by Python
Hi all,
Finally I released initial alpha version of my Python drawing API library. The aim of the library was to unify drawing experience (API) throughout multiple available backends such as wxPython, PyCairo or PyMuPDF. In addition, the very same API can easily be used within the Pythonista app. Feel free to try it out. I hope someone will find it useful as well as I do.Regards,
martin