When comparing PyCairo vs pyglet, the Slant community recommends pyglet for most people. In the question“What are the best drawing libraries for Python?” pyglet is ranked 2nd while PyCairo is ranked 3rd. The most important reason people chose pyglet is:
Since pyglet is so tightly woven with OpenGL it allows the support of drawing in 3D.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Good tutorials and documentation
With a plethora of documentation on the core Cairo library and the bindings for Python, users will be able to turn to the documentation, API, or translate examples from other languages to work with PyCairo.
Pro Supports rich set of platforms
Support includes Linux, BSDs, Microsoft Windows, and OS X. With all these supported platforms the PyCairo library will be able to complete the job.
Pro 3D support
Since pyglet is so tightly woven with OpenGL it allows the support of drawing in 3D.
Pro Cross-platform
Works with Windows, Linux, and OS X.
Pro Written in pure Python
A small advantage, but being a core Python developer, it may be the best to stick to the roots and develop with pyglet as it is able to compile using other Python interpreters.
Cons
Con No 3D support
Due to PyCairo being built off the 2D graphics library cairo, there is no 3D support for any graphics.
Con Small community/popularity
There is a decent amount of documentation and API to go along with pyglet, but in terms of community support there seems to be very little.
