src.bluetooth_sig.registry.company_identifiers.company_identifiers_registry¶
Company Identifiers Registry for Bluetooth SIG manufacturer IDs.
Attributes¶
Name | Description |
|---|---|
Classes¶
Name | Description |
|---|---|
Information about a Bluetooth SIG company identifier. |
|
Registry for Bluetooth SIG company identifiers with lazy loading. |
Module Contents¶
- class src.bluetooth_sig.registry.company_identifiers.company_identifiers_registry.CompanyIdentifierInfo¶
Bases:
msgspec.StructInformation about a Bluetooth SIG company identifier.
- 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.company_identifiers_registry¶