From 266ee3cadf1cbe029d96ba98d4a7f4ed4ddbca75 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Nov 2023 21:47:11 +0100 Subject: [PATCH] Expose `run` on the base package level. This enables a syntax like: ``` from platypush import run run('application.restart') ``` --- platypush/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/__init__.py b/platypush/__init__.py index ede8fee4bc..26fcfb1969 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -12,6 +12,7 @@ from .message.event import Event from .message.request import Request from .message.response import Response from .runner import main +from .utils import run __author__ = 'Fabio Manganiello ' @@ -26,6 +27,7 @@ __all__ = [ 'get_bus', 'get_plugin', 'main', + 'run', ]