platypush/platypush
Fabio Manganiello e982c02524
Set a plugin argument on AssistantEvents besides assistant.
`assistant` contains the assistant plugin object that triggered the
event, but you can't create event hook conditions on attributes that are
plugins.

The event should also store a `plugin` attribute which contains the
unique plugin name, so hooks like these can be built:

```
from platypush import hook
from platypush.events.assistant import ConversationStartEvent

@when(ConversationStartEvent, plugin="assistant.google")
def on_google_conversation_start():
  ...
```

It wouldn't be possible to construct a hook condition like the one above
on the plugin object reported on the `assistant` attribute.
2024-05-31 19:29:50 +02:00
..
app Added a nice ASCII-art logo at application startup. 2024-05-24 22:57:50 +02:00
backend Replaced deprecated usages of datetime.utcnow() with datetime.now(UTC). 2024-05-31 00:52:48 +00:00
builder Removed typing.Final from some of the most commonly used modules. 2023-09-26 23:50:10 +02:00
bus Removed typing.Final from some of the most commonly used modules. 2023-09-26 23:50:10 +02:00
commands [assistant.picovoice] Sync between the speech and intent engines. 2024-05-02 00:51:09 +00:00
common [#400] Dynamic logic to infer procedures/hooks arguments. 2024-05-19 02:17:42 +02:00
config Support both @procedure and @procedure(name) notations. 2024-05-26 11:02:19 +02:00
context [#302] Merged pushbullet backend and plugin. 2024-01-09 23:46:07 +00:00
cron Added wait_stop method to the entities engine and cron scheduler. 2023-08-14 23:49:47 +02:00
entities Replaced deprecated usages of datetime.utcnow() with datetime.now(UTC). 2024-05-31 02:30:48 +02:00
event 🐛 Fixed proper support for event package alias platypush.events. 2024-05-31 00:52:48 +00:00
exceptions Added support for JWT token-based authentication 2021-02-12 22:43:34 +01:00
install Clean up all package manager caches after Docker build. 2024-05-25 14:15:13 +02:00
message Set a plugin argument on AssistantEvents besides assistant. 2024-05-31 19:29:50 +02:00
migrations 🐛 Don't add the new password salt/iterations columns if already present. 2024-05-05 21:58:51 +02:00
platydock Adapted Platydock to the new Dockerfile format. 2024-05-25 10:17:45 +02:00
platyvenv [platyvenv] Add the venv bin directory to the PATH. 2023-10-22 02:28:31 +02:00
plugins Replaced deprecated usages of datetime.utcnow() with datetime.now(UTC). 2024-05-31 00:52:48 +00:00
procedure Support both @procedure and @procedure(name) notations. 2024-05-26 11:02:19 +02:00
process Removed typing-extensions dependency. 2023-09-18 14:05:39 +02:00
runner Ensure that the application always terminates on Ctrl+C. 2023-10-22 02:33:15 +02:00
schemas [#398] Removed custom Response objects from Tensorflow and response docs generation logic. 2024-05-15 09:55:58 +02:00
user Replaced deprecated usages of datetime.utcnow() with datetime.now(UTC). 2024-05-31 00:52:48 +00:00
utils Added dns to mocked modules. 2024-05-26 03:02:57 +02:00
__init__.py Bump version: 1.0.2 → 1.0.3 2024-05-31 02:57:08 +02:00
__main__.py The __main__ function should take no arguments. 2023-08-17 01:35:39 +02:00
cli.py Added --db CLI option and support for configuration over environment. 2024-04-05 02:54:45 +02:00
components.json.gz [Automatic] Updated components cache 2024-05-31 00:53:37 +00:00
events Added platypush.events alias for platypush.message.event package. 2024-05-24 23:16:15 +02:00
logger.py Refactored structure of main application and startup scripts. 2023-07-23 23:12:36 +02:00