src.bluetooth_sig.registry.profiles.permitted_characteristics

Permitted Characteristics Registry for profile service constraints.

Attributes

Classes

Name

Description

PermittedCharacteristicsRegistry

Registry for profile-specific permitted characteristic lists.

Module Contents

class src.bluetooth_sig.registry.profiles.permitted_characteristics.PermittedCharacteristicsRegistry

Bases: bluetooth_sig.registry.base.BaseGenericRegistry[PermittedCharacteristicsRegistry]

Registry for profile-specific permitted characteristic lists.

Loads permitted_characteristics YAML files from ESS, UDS and IMDS profile subdirectories under profiles_and_services/.

Thread-safe: Multiple threads can safely access the registry concurrently.

get_all_profiles() list[str]

Return all loaded profile keys (sorted).

get_entries(profile: str) list[bluetooth_sig.types.registry.profile_types.PermittedCharacteristicEntry]

Get the structured permitted-characteristic entries for a profile.

Parameters:

profile – Profile key (e.g. "ess", "uds", "imds").

Returns:

List of PermittedCharacteristicEntry or an empty list.

get_permitted_characteristics(profile: str) list[str]

Get the flat list of permitted characteristic identifiers for a profile.

Parameters:

profile – Profile key (e.g. "ess", "uds", "imds").

Returns:

List of characteristic identifier strings, or an empty list.

src.bluetooth_sig.registry.profiles.permitted_characteristics.permitted_characteristics_registry