src.bluetooth_sig.registry.company_identifiers.company_identifiers_registry

Company Identifiers Registry for Bluetooth SIG manufacturer IDs.

Classes

Name

Description

CompanyIdentifierInfo

Information about a Bluetooth SIG company identifier.

CompanyIdentifiersRegistry

Registry for Bluetooth SIG company identifiers with lazy loading.

Functions

Name

Description

get_company_identifiers_registry(...)

Return the process-wide company_identifiers_registry singleton instance.

Module Contents

class src.bluetooth_sig.registry.company_identifiers.company_identifiers_registry.CompanyIdentifierInfo

Bases: msgspec.Struct

Information about a Bluetooth SIG company identifier.

id: int
name: str
class src.bluetooth_sig.registry.company_identifiers.company_identifiers_registry.CompanyIdentifiersRegistry

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

Registry for Bluetooth SIG company identifiers with lazy loading.

This registry resolves manufacturer company IDs to company names from the official Bluetooth SIG assigned numbers. Data is lazily loaded on first access for performance.

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

get_company_name(company_id: int) str | None

Get company name by ID (lazy loads on first call).

Parameters:

company_id – Manufacturer company identifier (e.g., 0x004C for Apple)

Returns:

Company name or None if not found

Examples

>>> registry = CompanyIdentifiersRegistry()
>>> registry.get_company_name(0x004C)
'Apple, Inc.'
>>> registry.get_company_name(0x0006)
'Microsoft'
>>> registry.get_company_name(0x00E0)
'Google'
>>> registry.get_company_name(0xFFFF)  # Unknown ID
None
src.bluetooth_sig.registry.company_identifiers.company_identifiers_registry.get_company_identifiers_registry() CompanyIdentifiersRegistry

Return the process-wide company_identifiers_registry singleton instance.