forked from platypush/platypush
Added more default imports under the platypush
module root.
These objects can now also be imported in scripts through `from platypush import <name>`: - `Variable` - `cron` - `hook` - `procedure`
This commit is contained in:
parent
aa333db05c
commit
a6f7b6e790
1 changed files with 8 additions and 1 deletions
|
@ -7,10 +7,13 @@ Platypush
|
||||||
|
|
||||||
from .app import Application
|
from .app import Application
|
||||||
from .config import Config
|
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.event import Event
|
||||||
from .message.request import Request
|
from .message.request import Request
|
||||||
from .message.response import Response
|
from .message.response import Response
|
||||||
|
from .procedure import procedure
|
||||||
from .runner import main
|
from .runner import main
|
||||||
from .utils import run
|
from .utils import run
|
||||||
|
|
||||||
|
@ -19,14 +22,18 @@ __author__ = 'Fabio Manganiello <fabio@manganiello.tech>'
|
||||||
__version__ = '0.50.3'
|
__version__ = '0.50.3'
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'Application',
|
'Application',
|
||||||
|
'Variable',
|
||||||
'Config',
|
'Config',
|
||||||
'Event',
|
'Event',
|
||||||
'Request',
|
'Request',
|
||||||
'Response',
|
'Response',
|
||||||
|
'cron',
|
||||||
'get_backend',
|
'get_backend',
|
||||||
'get_bus',
|
'get_bus',
|
||||||
'get_plugin',
|
'get_plugin',
|
||||||
|
'hook',
|
||||||
'main',
|
'main',
|
||||||
|
'procedure',
|
||||||
'run',
|
'run',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue