src.bluetooth_sig.registry.profiles.profile_lookup

Profile Lookup Registry for simple name/value profile parameters.

Attributes

Name

Description

profile_lookup_registry

Classes

Name

Description

ProfileLookupRegistry

Registry for simple profile parameter lookup tables.

Module Contents

class src.bluetooth_sig.registry.profiles.profile_lookup.ProfileLookupRegistry

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

Registry for simple profile parameter lookup tables.

Loads non-LTV, non-permitted-characteristics YAML files from profiles_and_services/ and normalises each entry into a ProfileLookupEntry keyed by the YAML top-level key.

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

get_all_table_keys() list[str]

Return all loaded table key names (sorted).

get_entries(table_key: str) list[bluetooth_sig.types.registry.profile_types.ProfileLookupEntry]

Get all entries for a named lookup table.

Parameters:

table_key – The YAML top-level key, e.g. "audio_codec_id", "bearer_technology", "display_types".

Returns:

List of ProfileLookupEntry or an empty list if not found.

resolve_name(table_key: str, value: int) str | None

Look up the name for a given numeric value within a table.

Parameters:
  • table_key – Table key (e.g. "bearer_technology").

  • value – The numeric identifier.

Returns:

The entry name or None if not found.

src.bluetooth_sig.registry.profiles.profile_lookup.profile_lookup_registry