ZODB.Architecture.DB.getSize

Returns
PyIntthe approximate physical size of the database, in bytes