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
ezmsgezmsg-baseprocnumpypynput
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.
- Install
uvif not already installed. - Fork this repository and clone your fork locally.
- Open a terminal and
cdto the cloned folder. - Run
uv syncto create a.venvand install dependencies. - (Optional) Install pre-commit hooks:
uv run pre-commit install - After making changes, run the test suite:
uv run pytest tests
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 ezmsg_peripheraldevice-0.1.0.tar.gz.
File metadata
- Download URL: ezmsg_peripheraldevice-0.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0544633950dd3175a1de64d92e5a8797b809096c424127c458ecba8911e4ed96
|
|
| MD5 |
13d04b1f827130e01b696bc036e1ef6a
|
|
| BLAKE2b-256 |
ea30b7ab54e2424db43e92b82c13016cfbd70b60e63b828174ab0d11f1006306
|
File details
Details for the file ezmsg_peripheraldevice-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ezmsg_peripheraldevice-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
568c2db15c457acad53a8c5b2d2e6ca0fe22f78d90bc6df06e363153186fbe3a
|
|
| MD5 |
382aa4286be06234ff9e2c4b7fa5f9bd
|
|
| BLAKE2b-256 |
2c0ae96a3dccc16fda79427c101333295a51136d824bff2cd67616267198e151
|