codde_protocol 0.1.6

Multi Communication protocol in heart of the C.O.D.D.E. Pi framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import codde_protocol as cp

server = cp.CoddePiServer.use_socket("localhost:12345")


@cp.on(server)
def action_1(*args) -> bool:
    widget: cp.WidgetRegistry.ToggleButton = args[0]
    return widget.value


def main() -> str:
    return server._get_action("action_1")(cp.WidgetRegistry.ToggleButton(value=True))