def get_app_name(module: str) -> str:
    """Given the value of ``__module__`` dunder attr, return the
    name of the top level module i.e. the app name.

    Example::

        >>get_app_name('MyApp.urls.resolvers')
        'MyApp'

    """

    return module.split(".")[0]