Skip to main content

Modules to stream data from peripheral devices into ezmsg

Project description

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.

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

ezmsg_peripheraldevice-0.2.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ezmsg_peripheraldevice-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ezmsg_peripheraldevice-0.2.0.tar.gz.

File metadata

  • Download URL: ezmsg_peripheraldevice-0.2.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.20 {"installer":{"name":"uv","version":"0.9.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ezmsg_peripheraldevice-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d7fba07290520a71ab3045a9b67c93d3f0d1405b25377b8852ee12f7d80149b3
MD5 219ef8da63989deac60fa83849511f41
BLAKE2b-256 cde268cff250a3ade418518f5a0a8cf5f357be308875035175f248246fbe2100

See more details on using hashes here.

File details

Details for the file ezmsg_peripheraldevice-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ezmsg_peripheraldevice-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.20 {"installer":{"name":"uv","version":"0.9.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ezmsg_peripheraldevice-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a943ee1e7b31978eb431d7332f773aeefe521f1d06e975804872783afea00732
MD5 17f3f0acc71bc071fcda88771cf11fd5
BLAKE2b-256 3ad88727f9aa984ea9927ab60f14a37911e7537bc6cab9d6ae45f405f1b9307c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page