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.2
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.2.tar.gz | 23.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sltmodel-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.4 kB
Release files / sltmodel-1.0.2.tar.gz
| Download URL | sltmodel-1.0.2.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
488a132254d9f1a54d2ae573c553a5d0340f74ea3dc96a3ebc6d19a2320fa16b
|
|
BLAKE2b-256 checksum How to use checksums |
3934a2a2291bf18e25e0fdcfa06b4a2b1a2555f64ddc0377b901d9b709328789
|
| 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.2-py3-none-any.whl
| Download URL | sltmodel-1.0.2-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c71f8a81ed504815b5a69677c22b520f8d9b042a45494119964e1903172534d7
|
|
BLAKE2b-256 checksum How to use checksums |
9f55d835b1099dc34eab0de1b8212a079e49e908e6f1e3f11061fc80ddf17c2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|