def get_main_package_name(module_name):
    """
    gets the main package name from given module name.

    for example for `pyrin.database.manager` module, it
    returns `pyrin` as the main package name.

    :param str module_name: module name to get its root package name.

    :rtype: str
    """
    return module_name.split('.')[0]
