PyGlet is a cross-platform windowing and multimedia Python library used in developing games and other visually-rich applications, because it give access to : OpenGL (2D & 3D graphics), text and image manipulation, keyboard and mouse events, playing multimedia formats, etc.

PyGlet is written in pure Python and has no external dependencies. But anyway, PyGlet uses OpenGL, and most mobile OS have only OpenGL ES implemented, so Android, iOS, Symbian, etc, don't run PyGlet.

Maemo 5 (Fremantle) OS exceptionally has Mesa packages ('libglu1-mesa' and 'libgl1-mesa-swx11') so it is possible to run PyGlet ! But not all PyGlet examples work due to the differences between desktop OS (Windows, Linux, MacOS) and Maemo 5 OS (a mobile Linux) and the fact that PyGlet wasn't designed to run on mobile OS.

'OpenGL.py' example from the 'examples' directory of PyGlet source-code, which runs a rotating torus in 3D space :

Install & use on Maemo 5 :
Enable extras-devel or extras-testing repository, then in the "X terminal" :
$ sudo gainroot
# apt-get update
# apt-get install python-pyglet
PyGlet is optified and takes 6.4 MB after install, while its Mesa dependencies are not optified and use 5.2 MB of root partition.
The PyGlet documentation and examples can also installed by typing '# apt-get install pyglet-doc'. It is optified and uses 10.0 MB after install.
The 'pyglet-doc' examples are located at '/usr/lib/python2.5/site-packages/pyglet-doc/' directory.