Skip to main content
# et
Sending and receiving arbitrary data via UDP


This package implements a lightweight, pure-Python client and server
pair that sends and receives simple Python structures via UDP. The original motivation is to
enable a package to send "phone home" messages.

The default encoding is zlib-compressed json. (pickle is not used out
of security concerns
[[example](https://www.smartfile.com/blog/python-pickle-security-problems-and-solutions/)].)



# Example

```
make devready
```

In one shell, type:

```
$ python et/server.py
INFO:__main__:Listening on localhost:2233
```

In another shell, type:

```
$ python ./et/client.py
```
(There is no output from the client)

In the server window, you should see messages like:

```
INFO:__main__:Received 4 bytes from ('127.0.0.1', 47750) in format 1

INFO:__main__:Received 12 bytes from ('127.0.0.1', 59498) in format 2

INFO:__main__:Received 18 bytes from ('127.0.0.1', 42396) in format 1
{'test': 'data'}
INFO:__main__:Received 26 bytes from ('127.0.0.1', 42598) in format 2
{'test': 'data'}
INFO:__main__:Received 122 bytes from ('127.0.0.1', 57842) in format 1
{'version': '1.2.3rc4', 'sys.version_info': [3, 5, 2, 'final', 0], 'sys.platform': 'linux', 'local_ip': '172.18.20.148'}
INFO:__main__:Received 108 bytes from ('127.0.0.1', 44319) in format 2
{'version': '1.2.3rc4', 'sys.version_info': [3, 5, 2, 'final', 0], 'sys.platform': 'linux', 'local_ip': '172.18.20.148'}
```

Format 1 is json; format 2 is compressed json.

Metadata

Release files for et 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for et 0.0.2
File Size Uploaded
et-0.0.2.tar.gz 7.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for et 0.0.2
File Interpreter ABI Platform
et-0.0.2-py3.5.egg Legacy Egg format - - Details
et-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 18.8 kB

Release files / et-0.0.2.tar.gz

Download URL et-0.0.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9ccb5767e0b89cf1f670e88e088039cc9c0c7cf0e7949b286ee21456a511e5a
BLAKE2b-256 checksum
How to use checksums
2d3418dba58f737dbf2b697f95a0339469abbe539297bf4a74323062a16650ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / et-0.0.2-py3.5.egg

Download URL et-0.0.2-py3.5.egg
Size 6.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
53ea60bdbe275085595c7a04b7b0c544e76a7f956a7f04aaaff62516cf47ecc3
BLAKE2b-256 checksum
How to use checksums
50d74a3b688ca0b1ba84fb027d82707cad3842beef6e7bcb2d6a3c5a5173cfa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / et-0.0.2-py2.py3-none-any.whl

Download URL et-0.0.2-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e818df914b5a1238c423d0e0dce04eaa939ed5ec19d906952ee6d7136593f7c1
BLAKE2b-256 checksum
How to use checksums
7e523350143771b8c99d86a6014202ff7b92b3b78e79c23699ec730f53703bbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page