UTCP communication protocol plugin for TCP and UDP protocols.
Project description
UTCP Socket Plugin (UDP/TCP)
This plugin adds UDP and TCP communication protocols to UTCP 1.0.
Running Tests
Prerequisites:
- Python 3.10+
pip- (Optional) a virtual environment
- Install core and the socket plugin in editable mode with dev extras:
pip install -e "./core[dev]"
pip install -e ./plugins/communication_protocols/socket[dev]
- Run the socket plugin tests:
python -m pytest plugins/communication_protocols/socket/tests -v
- Run a single test or filter by keyword:
# One file
python -m pytest plugins/communication_protocols/socket/tests/test_tcp_communication_protocol.py -v
# Filter by keyword (e.g., delimiter framing)
python -m pytest plugins/communication_protocols/socket/tests -k delimiter -q
- Optional end-to-end sanity check (mock UDP/TCP servers):
python scripts/socket_sanity.py
Notes:
- On Windows, your firewall may prompt the first time tests open UDP/TCP sockets; allow access or run as admin if needed.
- Tests use
pytest-asyncio. The dev extras installed above provide required dependencies. - Streaming is single-chunk by design, consistent with HTTP/Text transports. Multi-chunk streaming can be added later behind provider configuration.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
utcp_socket-1.1.0.tar.gz
(12.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utcp_socket-1.1.0.tar.gz.
File metadata
- Download URL: utcp_socket-1.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6add374618cc657b892b549cab0d5865be0e6db874cd20b24b4c14acd7c6f080
|
|
| MD5 |
8782e90f9fc72f525a4742f9c2e46773
|
|
| BLAKE2b-256 |
d01bdb9cdd0cc9c898153ead6cdd0c5dd458f4bcdaf2153f4621cc3879fc484a
|
File details
Details for the file utcp_socket-1.1.0-py3-none-any.whl.
File metadata
- Download URL: utcp_socket-1.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f33ef3c66464aec26ee382f89bda89248170c57a2d75012a7c37eb8649dbd1d7
|
|
| MD5 |
798e5b10ec7461f054da7d1ef158a8ac
|
|
| BLAKE2b-256 |
1dc892eda518317373573f49919e39529ea432c87c035ae8924f72b9fc336bc4
|