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
- Host: GitHub
- URL: https://github.com/ideoforms/python-jdp
- Owner: ideoforms
- Created: 2016-02-22T15:21:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-19T07:58:05.000Z (about 1 year ago)
- Last Synced: 2025-07-06T20:46:39.087Z (about 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.