from importlib.metadata import version, PackageNotFoundError

from . import CommonFunctions
from . import WebService
from . import Config
from . import DeviceFunctions
from . import DeviceHealthFunctions
from . import Model
from . import Result

__all__ = ["CommonFunctions", "WebService", "Config", "DeviceFunctions", "DeviceHealthFunctions", "Model", "Result"]

try:
    # Use your PyPI/distribution name here (the one in pyproject.toml [project].name)
    __version__ = version("actionstreamer")
except PackageNotFoundError:
    # Happens when running from source without being installed
    __version__ = "0.0.0"