gramme

Elegant UDP messaging


License
BSD-3-Clause
Install
pip install gramme==0.1.2

Documentation

gramme

pypi version

A elegant way to pass volatile data around over UDP (datagrammes) serialized with msgpack

Example Server

import gramme

@gramme.server(3030)
def my_awsome_data_handler(data):
    print data

Example Client

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)

Installation

Install gramme with pip:

$ pip install gramme

License

BSD

Bitdeli badge