summaryrefslogtreecommitdiff
path: root/src/home/api/__init__.py
blob: 782a61e5bbaeb0d529bd70a337214f2a71492ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
import importlib

__all__ = ['WebAPIClient', 'RequestParams']


def __getattr__(name):
    if name in __all__:
        module = importlib.import_module(f'.web_api_client', __name__)
        return getattr(module, name)

    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")