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