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