The network-protocol packet parse/assemble layer of the PyTCP stack — Ethernet through TCP/UDP — fully usable on its own.
Project description
PyTCP-net_proto
The network-protocol packet parse / assemble / validate layer of the PyTCP TCP/IP stack — extracted as its own distribution and usable on its own.
from net_proto import IpProto
from net_proto.protocols.udp.udp__parser import UdpParser
Why
Strict, RFC-grounded, fully-typed wire-format codecs for the common Internet protocols, with a single clean validation-error tree and no runtime dependencies beyond the address library it is built on.
Coverage
Ethernet II / 802.3 (LLC/SNAP), ARP, IPv4 (+ options), IPv6 (+ Hop-by-Hop / Destination-Options / Routing / Fragment extension headers), ICMPv4, ICMPv6 (incl. ND, MLDv2), TCP (+ options), UDP, DHCPv4 — each as a parser / assembler pair with header dataclasses, integrity + sanity validation, and typed protocol enums.
Install
pip install PyTCP-net_proto
Depends only on PyTCP-net_addr (the address value-type library)
and aenum. Fully typed (ships py.typed, PEP 561).
Requirements
Python 3.14+.
License
GPL-3.0-or-later. Part of the PyTCP project by Sebastian Majewski.
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
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 pytcp_net_proto-3.0.5.tar.gz.
File metadata
- Download URL: pytcp_net_proto-3.0.5.tar.gz
- Upload date:
- Size: 133.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f56b2d5311a262e639778a0dfae38714e4d813ee17a41e8591c63e40dcfacf55
|
|
| MD5 |
f8caf28f53e58b07ad9dc27bdbd39c8f
|
|
| BLAKE2b-256 |
6180e47a1330e7ed9f448826dd35f638615bc8468096fe1e51447a319a62f38d
|
Provenance
The following attestation bundles were made for pytcp_net_proto-3.0.5.tar.gz:
Publisher:
publish.yml on ccie18643/PyTCP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytcp_net_proto-3.0.5.tar.gz -
Subject digest:
f56b2d5311a262e639778a0dfae38714e4d813ee17a41e8591c63e40dcfacf55 - Sigstore transparency entry: 1574103701
- Sigstore integration time:
-
Permalink:
ccie18643/PyTCP@1a476d45f18fd00bc045c2ef10c13ec1f8160c61 -
Branch / Tag:
refs/tags/net_proto-v3.0.5 - Owner: https://github.com/ccie18643
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1a476d45f18fd00bc045c2ef10c13ec1f8160c61 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pytcp_net_proto-3.0.5-py3-none-any.whl.
File metadata
- Download URL: pytcp_net_proto-3.0.5-py3-none-any.whl
- Upload date:
- Size: 363.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ddae4b6fd7573ed1ad1e3095b734f6a9126fc0c7ed98033ffeccdeca6314b0
|
|
| MD5 |
a68a2fd53f2350b699c25ceb0311b267
|
|
| BLAKE2b-256 |
89afa3dd791a4a1701b6dd80a2a2ce40de961ac3780592071ef2108480cab4b2
|
Provenance
The following attestation bundles were made for pytcp_net_proto-3.0.5-py3-none-any.whl:
Publisher:
publish.yml on ccie18643/PyTCP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytcp_net_proto-3.0.5-py3-none-any.whl -
Subject digest:
73ddae4b6fd7573ed1ad1e3095b734f6a9126fc0c7ed98033ffeccdeca6314b0 - Sigstore transparency entry: 1574103733
- Sigstore integration time:
-
Permalink:
ccie18643/PyTCP@1a476d45f18fd00bc045c2ef10c13ec1f8160c61 -
Branch / Tag:
refs/tags/net_proto-v3.0.5 - Owner: https://github.com/ccie18643
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1a476d45f18fd00bc045c2ef10c13ec1f8160c61 -
Trigger Event:
release
-
Statement type: