from time import sleep from dynalab_core import Core from dynalab_core.config import CoreConfig config = CoreConfig(port=8765) print(config) dl_core = Core(config) dl_core.start() print("started") try: while True: dl_core.wait(1) print("waiting") except KeyboardInterrupt: dl_core.stop()