Skip to content

ezmsg-org/ezmsg-peripheraldevice

Repository files navigation

ezmsg-peripheraldevice

Short description of your ezmsg package.

Installation

pip install ezmsg-peripheraldevice

Dependencies

  • ezmsg
  • ezmsg-baseproc
  • numpy
  • pynput

Usage

Mouse Examples

Event-driven mouse listener - captures every mouse movement event:

python examples/mouse_listen.py

Polling mouse position - reads mouse position at a fixed rate:

python examples/mouse_poll.py --rate 60

Programmatic Usage

import ezmsg.core as ez
from ezmsg.peripheraldevice import MouseListener, MouseListenerSettings
from ezmsg.peripheraldevice import MousePoller, MousePollerSettings

Note: MouseListener requires extra permissions.

Development

We use uv for development.

  1. Install uv if not already installed.
  2. Fork this repository and clone your fork locally.
  3. Open a terminal and cd to the cloned folder.
  4. Run uv sync to create a .venv and install dependencies.
  5. (Optional) Install pre-commit hooks: uv run pre-commit install
  6. After making changes, run the test suite: uv run pytest tests

License

MIT License - see LICENSE for details.

About

Modules to stream data from peripheral devices into ezmsg

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages