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.1.tar.gz
(22.1 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.1.tar.gz.
File metadata
- Download URL: ioregistry-0.0.1.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ececcd8136d4586ecd9698f7592eed988f970e27f79aaedb769be802469ea6a2
|
|
| MD5 |
77032628c54bf43d3e539e9ed569b8f8
|
|
| BLAKE2b-256 |
2a768ebfbb29ee918a5a976dfe6b8e1208b202853c2e633200fcefba14be08d2
|
File details
Details for the file ioregistry-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ioregistry-0.0.1-py3-none-any.whl
- Upload date:
- Size: 19.1 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 |
6915137b1fb9cce3a0228ef40d945a40db3fe19ecfd09d455c1aca205c557066
|
|
| MD5 |
8fd71115c8712dd0d4c5a8c46fcf775d
|
|
| BLAKE2b-256 |
2e486fda86a9456bd83bcae28bb87b938eb7db01fc9f042b600f7b5ec6b0ea76
|