Module talon.events
from talon import eventsClasses
| Name | Reference |
|---|---|
Event | ts · num · path · topic · desc · noisy · attrs |
Functions
| Name | Reference |
|---|---|
write | (topic: str, desc: str = '', /, *, noisy: bool = False, **kwargs: AttrValue) -> None |
reader | () -> talon.events.RingReader |
tail | (search: str | collections.abc.Callable[[str], bool] | None = None, *, limit: int = 120, noisy: bool = False) -> None |
Functions
write§
def write(topic: str, desc: str = '', /, *, noisy: bool = False, **kwargs: AttrValue) -> NoneExample
from talon import events
events.write("user.example", "Example event")
reader§
def reader() -> talon.events.RingReaderExample
from talon import events
reader = events.reader()
for event in reader:
print(event.topic, event.desc)
tail§
def tail(search: str | collections.abc.Callable[[str], bool] | None = None, *, limit: int = 120, noisy: bool = False) -> None