An open API service indexing awesome lists of open source software.

https://github.com/ideoforms/python-jdp

JSON Datagram Protocol for Python
https://github.com/ideoforms/python-jdp

Last synced: 11 months ago
JSON representation

JSON Datagram Protocol for Python

Awesome Lists containing this project

README

          

# JSON Datagram Protocol

JSON Datagram Protocol, a lightweight communication protocol encapsulating JSON objects in individual UDP datagrams.

## Usage: Client

```python
import jdp

client = jdp.Client(("localhost", 11000))
client.send({ "hello" : "world" })
```

## Usage: Server

```python

def handler(data):
print str(data)

server = jdp.Server(11000)
server.add_callback(handler)
server.start()
```

---

## License

> Created by Daniel Jones
> Available under the terms of the MIT License.