The __version__ module is accessible via the sqlobject module.
3
'final'
(3, 1, 0, 'final', 0)
None
0
'3.1.0'
1
See the source for more information.