def GetModuleSize(base):
    for module in _get_modules():
        if module.base == base:
            return module.size
    else:
        return -1
Get process module size
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetModuleSize