StructLayoutToolkitModel
StructLayoutToolkitModel (distribution name sltmodel) is a standalone,
GUI-independent model library that handles StructLayout definitions and binary
decoding. It provides the structure engine used by StructLayoutToolkitGui and
is intended for reuse by other clients such as a CLI.
Installation
python -m pip install sltmodel
API
from sltmodel import CaptureDocument, PayloadStructDef
from sltmodel.resources import load_pcap_layout
capture = CaptureDocument.from_bytes(capture_bytes)
pcap_layout = load_pcap_layout()
The package provides capture parsing and IP fragment reassembly, conditional payload StructLayout definitions, StructInstance value helpers, InfoSize conversion helpers, and the bundled PCAP/PCAPNG layouts. It does not import or depend on Tkinter.
Development
uv sync
uv run pytest -q
uv build
To bump the package version, run one of these scripts from the repository root.
Each script resolves pyproject.toml and uv.lock relative to its own location.
.\bump_major.ps1
.\bump_minor.ps1
.\bump_patch.ps1
The scripts update the sltmodel version in both pyproject.toml and uv.lock.
Metadata
Release files for sltmodel 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sltmodel-1.0.0.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sltmodel-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.1 kB
Release files / sltmodel-1.0.0.tar.gz
| Download URL | sltmodel-1.0.0.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba67206af3062dabd1069bc8f8cd380142cf773162ebc5d0e2806d91b2c9ac40
|
|
BLAKE2b-256 checksum How to use checksums |
eac4476f27d3cf7707355a4207f672f489872063a302fc58876f41e02dc932da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / sltmodel-1.0.0-py3-none-any.whl
| Download URL | sltmodel-1.0.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76d357ef07e34a8b3e0dd733e4f2742de639552f90eb381db7126941d17697b9
|
|
BLAKE2b-256 checksum How to use checksums |
06b26fd2dcb39f6ddc304af840c75b28aa7382a26073643c33d916c2691a9d69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|