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