IORegistry exploration library
Project description
ioregistry
Python library for IORegistry exploration.
Installation
python3 -m pip install -U ioregistry
Usage
See the following example as an example to query the associated USB-ethernet interface with a connected iDevice:
from ioregistry.exceptions import IORegistryException
from ioregistry.ioentry import get_io_services_by_type
for ethernet_interface_entry in get_io_services_by_type('IOEthernetInterface'):
try:
apple_usb_ncm_data = ethernet_interface_entry.get_parent_by_type('IOService', 'AppleUSBNCMData')
except IORegistryException:
continue
if 'waitBsdStart' in apple_usb_ncm_data.properties:
# RSD interface
continue
try:
usb_host = ethernet_interface_entry.get_parent_by_type('IOService', 'IOUSBHostDevice')
except IORegistryException:
continue
product_name = usb_host.properties['USB Product Name']
usb_serial_number = usb_host.properties['USB Serial Number']
print(product_name, usb_serial_number, ethernet_interface_entry.name)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ioregistry-0.0.4.tar.gz
(21.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ioregistry-0.0.4.tar.gz.
File metadata
- Download URL: ioregistry-0.0.4.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01c977f03e1ff2cc1ec24ea8ab2a913bbd78f43c8d6129b32ab99b55ff748288
|
|
| MD5 |
891469ea42e797749a5cf0e02274ebe1
|
|
| BLAKE2b-256 |
737f9d8badea762b3a1a68d76cb86c1e1365cd575c7e007afcdc996a066b63a9
|
File details
Details for the file ioregistry-0.0.4-py3-none-any.whl.
File metadata
- Download URL: ioregistry-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c30a5171fae2c5012fe1b9aa918c3536d559f112bb95a2be9fd1c021a3a6d0
|
|
| MD5 |
23fff8a72b3e890dc46bd4c0fc19810e
|
|
| BLAKE2b-256 |
55d40f5743409db7518841a925b3c1547858bb456f959a50fe722773eaffd2f4
|