Sha256: 3ff900188ca55ef5886de60d456ce1c00870ef7cb921006e611a3481d192728b
Contents?: true
Size: 351 Bytes
Versions: 2
Compression:
Stored size: 351 Bytes
Contents
from bytewax.swarm import register_bee @register_bee(name = "hello") def hello(swarm, payload, context): print("hello {}".format(payload['name'])) swarm.publish(payload,context=context) @register_bee(name = "goodbye") def goodbye(swarm, payload, context): swarm.respond("goodbye {}".format(payload['name']), context = context)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bytewax-docs-0.1.1 | tutorials/hello-world/hello.py |
bytewax-docs-0.1.0 | tutorials/hello-world/hello.py |