device_manager.utils package¶
Submodules¶
device_manager.utils.usb_vendor_database module¶
-
class
device_manager.utils.usb_vendor_database.
USBVendorDatabase
[source]¶ Bases:
object
A static class that maps vendor/product ids to their corresponding names.
-
static
_download_vendors
() → Dict[int, Dict[Optional[int], str]][source]¶ Downloads all vendor/product ids and their corresponding names.
- Returns
Mapping of all known vendor/product ids with their corresponding names.
- Return type
dict
-
classmethod
get_vendor_product_name
(vendor_id: int, product_id: int) → Tuple[Optional[str], Optional[str]][source]¶ Returns names for a specific combination of vendor and product id.
- Parameters
vendor_id – Manufacturer id, defined by the USB committee.
product_id – Model code, defined by the model’s manufacturer.
- Returns
A tuple of two names. The first one for the vendor, the second one for the product.
-
_USBVendorDatabase__vendors
= None¶
-
static