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.3
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.3.tar.gz | 23.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sltmodel-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.5 kB
Release files / sltmodel-1.0.3.tar.gz
| Download URL | sltmodel-1.0.3.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a30f180d2b843782c6d0a51e526a99fabc8c6492e632776797aa90e15f561ac2
|
|
BLAKE2b-256 checksum How to use checksums |
f7b5df4029089fb70ff1da48e13007b18abdfb748ae9d05a31d8ea18d0e084c9
|
| 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.3-py3-none-any.whl
| Download URL | sltmodel-1.0.3-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21e20d634a9d6be55343f8b3eaf99f61a5db94ea7b15e1fd0c5e3672d9359dff
|
|
BLAKE2b-256 checksum How to use checksums |
24cb6b446801f7eb963ae7860881d08dfb4c18673a3ac0db81deee714cbc65f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|