When comparing pyglet vs Codea, the Slant community recommends pyglet for most people. In the question“What are the best 2D game engines?” pyglet is ranked 43rd while Codea is ranked 107th. 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 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.
Pro Helpful code editor
Errors show up live, as you type. Smarter autocompletion picks up your local and global variables, including nested types. Everything else is just plain smarter, from indentation to highlighting.
Pro Ships with music and sound packs
Codea ships with three great music and sound packs, composed just for Codea and free for you to use in whatever you create.
Pro You can code on an iPad and easily distribute the game
Pro Location library
Location library lets you make use of the GPS inside your iPad. Get your latitude, longitude, altitude and more with a dead-simple API designed specifically for Codea.
Cons
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.