aiousbwatcher package

class aiousbwatcher.AIOUSBWatcher[source]

Bases: object

A watcher for USB devices that uses asyncio.

async_register_callback(callback: Callable[[], None]) Callable[[], None][source]

Register callback that will be called when a USB device is added/removed.

async_start() Callable[[], None][source]

Start the watcher.

exception aiousbwatcher.InotifyNotAvailableError[source]

Bases: Exception

Raised when inotify is not available on the platform.

Submodules

aiousbwatcher.impl module

class aiousbwatcher.impl.AIOUSBWatcher[source]

Bases: object

A watcher for USB devices that uses asyncio.

async_register_callback(callback: Callable[[], None]) Callable[[], None][source]

Register callback that will be called when a USB device is added/removed.

async_start() Callable[[], None][source]

Start the watcher.

exception aiousbwatcher.impl.InotifyNotAvailableError[source]

Bases: Exception

Raised when inotify is not available on the platform.