Metadata-Version: 2.5
Name: sltmodel
Version: 0.1.0
Summary: GUI-independent data models and operations for StructLayoutToolkit
Project-URL: Homepage, https://github.com/fangface-hub/StructLayoutToolkitGui
Project-URL: Repository, https://github.com/fangface-hub/StructLayoutToolkitGui
Project-URL: Issues, https://github.com/fangface-hub/StructLayoutToolkitGui/issues
Author: fangface
License-Expression: MIT
License-File: LICENSE
Keywords: byte,deserialization,layout,serialization,struct
Requires-Python: >=3.14
Requires-Dist: sltcalc>=1.1.0
Requires-Dist: sltcodec>=2.6.1
Requires-Dist: sltcore>=1.7.0
Description-Content-Type: text/markdown

# 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

```console
python -m pip install sltmodel
```

## API

```python
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

```console
uv sync
uv run pytest -q
uv build
```
