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