UTCP communication protocol plugin for TCP and UDP protocols. (Work in progress)
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.0.2.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.0.2.tar.gz.
File metadata
- Download URL: utcp_socket-1.0.2.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 |
ccc1290c07362531d327e020b8e71eb3f3a44402d4d2c746489f0553fcb6c55f
|
|
| MD5 |
29235263ec3bfa3f489dda63e929ce1e
|
|
| BLAKE2b-256 |
7568683e261759783d81662b8c24b4ff704b8256ac0bc61ad951cd89068c9591
|
File details
Details for the file utcp_socket-1.0.2-py3-none-any.whl.
File metadata
- Download URL: utcp_socket-1.0.2-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 |
2b25a2adf666da753137ddedc48a68f279d689cb45baeeaa1f24d726e781587d
|
|
| MD5 |
e3d58020b518edd82dbb934600accfba
|
|
| BLAKE2b-256 |
7b6392c002b33746913251a5559f669d3eb08c756a2307bbefb9900f03c96020
|