The __version__ module is accessible via the sqlobject module.
1
'branch'
(1, 4, 0, 'branch', 0)
None
0
'1.4'
4
See the source for more information.