styly-mdm 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
styly_mdm/__init__.py ADDED
@@ -0,0 +1,18 @@
1
+ """STYLY-MDM control server package.
2
+
3
+ Exposes the aiohttp application factory and the console entrypoint. The server is
4
+ started with the ``styly-mdm`` console script (or ``python -m styly_mdm``); it is
5
+ not an ASGI app, because the LAN UDP discovery responder is started in the same
6
+ asyncio loop as the HTTP server (see server.run_server).
7
+ """
8
+
9
+ from importlib.metadata import PackageNotFoundError, version
10
+
11
+ from .server import create_app, main, run_server
12
+
13
+ try:
14
+ __version__ = version("styly-mdm")
15
+ except PackageNotFoundError: # running from a source tree that isn't installed
16
+ __version__ = "0.0.0"
17
+
18
+ __all__ = ["create_app", "main", "run_server", "__version__"]
styly_mdm/__main__.py ADDED
@@ -0,0 +1,6 @@
1
+ """Enable ``python -m styly_mdm`` to start the control server."""
2
+
3
+ from .server import main
4
+
5
+ if __name__ == "__main__":
6
+ main()