__init__.py 492 Bytes
Newer Older
yuhai's avatar
yuhai committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
__author__ = "Yixiao Chen"

try:
    from ._version import version as __version__
except ImportError:
    __version__ = 'unkown'

__all__ = [
    "iterate",
    "model",
    "scf",
    "task",
    # "tools" # collection of command line scripts, should not be imported by user
]

def __getattr__(name):
    from importlib import import_module
    if name in __all__:
        return import_module("." + name, __name__)
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")