Commit Graph

9 Commits

Author SHA1 Message Date
2cebd5eedb upd examples, they now use context managers 2024-01-07 11:21:01 +00:00
onyx-and-iris
b8b446f9bf use context manager in scene_rotate
other refactors
2022-10-24 22:42:46 +01:00
onyx-and-iris
1db3b2db4d pass empty dict if data is None in trigger()
fixes bug with ExitStarted event.

remove redundant assignment in conn_from_toml

add explicit call to ws.close() in unsubscribe()

patch bump
2022-09-26 10:58:02 +01:00
aatikturk
6311234d48 namechange ops 2022-09-04 14:20:40 +03:00
onyx-and-iris
20851c3880 request and event data now returned as dataclasses
unit tests updated accordingly
2022-07-27 22:44:40 +01:00
onyx-and-iris
2a3a86c277 EventsClient renamed to EventClient
remove getter, setter for send.

add persistend data unit test

add hotkey example

default event sub now 0. explicitly define subs in event class.
now subs can be set as kwarg
2022-07-27 19:39:33 +01:00
onyx-and-iris
362ec22257 no longer sending event name to callback
update tests accordingly
2022-07-26 21:47:41 +01:00
onyx-and-iris
c8f2b6419d add subs intenum to baseclient
expand events example
2022-07-26 04:36:55 +01:00
onyx-and-iris
b5b69de218 add support for toml config.
subject module added, supports callbacks.

events module added. Provides an event listener and callback trigger.

import isorted, code run through black.

toml section added to readme.

added a couple of examples.
2022-07-25 23:51:30 +01:00