From a6f7b6e7905f5c79d14e8e0a46a3280a3d93df09 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 10 Apr 2024 23:28:22 +0200 Subject: [PATCH] Added more default imports under the `platypush` module root. These objects can now also be imported in scripts through `from platypush import `: - `Variable` - `cron` - `hook` - `procedure` --- platypush/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index 26fcfb196..c962a5d12 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -7,10 +7,13 @@ Platypush from .app import Application from .config import Config -from .context import get_backend, get_bus, get_plugin +from .context import Variable, get_backend, get_bus, get_plugin +from .cron import cron +from .event.hook import hook from .message.event import Event from .message.request import Request from .message.response import Response +from .procedure import procedure from .runner import main from .utils import run @@ -19,14 +22,18 @@ __author__ = 'Fabio Manganiello ' __version__ = '0.50.3' __all__ = [ 'Application', + 'Variable', 'Config', 'Event', 'Request', 'Response', + 'cron', 'get_backend', 'get_bus', 'get_plugin', + 'hook', 'main', + 'procedure', 'run', ]