A elegant way to pass volatile data around over UDP (datagrammes) serialized with msgpack
import gramme
@gramme.server(3030)
def my_awsome_data_handler(data):
print data
import gramme
client = gramme.client(host="132.23.x.x", port=3030)
some_data = {'key': 'value'}
client.send(some_data)
more_data = ['i am a list', 1, {'hello': 'there!'}]
client.send(more_data)
Install gramme with pip:
$ pip install gramme
BSD