platypush/platypush/__init__.py
Fabio Manganiello 266ee3cadf Expose run on the base package level.
This enables a syntax like:

```
from platypush import run

run('application.restart')
```
2023-11-03 20:54:46 +00:00

34 lines
635 B
Python

"""
Platypush
.. moduleauthor:: Fabio Manganiello <fabio@manganiello.tech>
.. license: MIT
"""
from .app import Application
from .config import Config
from .context import get_backend, get_bus, get_plugin
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 <fabio@manganiello.tech>'
__version__ = '0.50.3'
__all__ = [
'Application',
'Config',
'Event',
'Request',
'Response',
'get_backend',
'get_bus',
'get_plugin',
'main',
'run',
]
# vim:sw=4:ts=4:et: