src.bluetooth_sig.gatt.characteristics.templates

Coding templates for characteristic composition patterns.

This package provides reusable coding template classes that can be composed into characteristics via dependency injection. Templates are pure coding strategies that do NOT inherit from BaseCharacteristic.

All templates follow the CodingTemplate protocol and can be used by both SIG and custom characteristics through composition.

Pipeline architecture:

bytes → [Extractor] → raw_int → [Translator] → typed_value

Templates that handle single-field data expose extractor and translator properties for pipeline access. Complex templates (multi-field, variable-length) keep monolithic decode/encode since there’s no single raw value to intercept.

Submodules