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