Skip to content
Back to top
View this page

# aiousbwatcher package

class aiousbwatcher.AIOUSBWatcher

  Bases: `object`

  A watcher for USB devices that uses asyncio.

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

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

  async_start() → Callable[[], None]

    Start the watcher.

exception aiousbwatcher.InotifyNotAvailableError

  Bases: `Exception`

  Raised when inotify is not available on the platform.

## Submodules

## aiousbwatcher.impl module

class aiousbwatcher.impl.AIOUSBWatcher

  Bases: `object`

  A watcher for USB devices that uses asyncio.

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

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

  async_start() → Callable[[], None]

    Start the watcher.

exception aiousbwatcher.impl.InotifyNotAvailableError

  Bases: `Exception`

  Raised when inotify is not available on the platform.