pygxinput allows use of XInput devices in pyglet. Such devices include 3Dconnexion Space Navigator and Wacom tablets.
For information about how to setup the Space Navigator as an XInput device, see http://www.fedorawiki.de/index.php/SpaceNavigator (in German).
It is provided under a BSD license by author Andrew Straw.
Screenshot of example program opengl_xinput.py demonstrating use of a 3Dconnexion Space Navigator to control the movement of a torus in 3D.
The development version of pygxinput (raw files) may be downloaded via git:
git clone git://github.com/motmot/pygxinput.git
For the time being, all discussion for this software should happen on the pyglet-users mailing list.