Ad

mouse: Global mouse event simulation in Python

mouse provides a way to hook and simulate mouse events, enabling control over mouse behavior on Windows, Linux, and macOS. It facilitates tasks like event hooking, hotkey registration, and precise mouse movement.
Screenshot of boppreh/mouse homepage

mouse allows developers to intercept and simulate mouse events at a global level using Python. It provides functionalities for hooking into mouse events, sending custom mouse events, and controlling mouse movement. This library overcomes limitations of platform-specific APIs by offering a cross-platform solution with minimal dependencies, leveraging pure Python for ease of deployment.

This project stands out due to its pure Python implementation, eliminating the need for C modules and simplifying deployment. It boasts zero dependencies on Windows and Linux, streamlining installation. The high-level API makes complex mouse interactions manageable, and event handling occurs in a separate thread, preventing main program blocking.

  • Global Event Hooking: Captures mouse events regardless of window focus.
  • Cross-Platform Compatibility: Functions on Windows, Linux, and macOS.
  • Pure Python: No external dependencies or C compilation required.
  • High-Level API: Streamlined functions for event manipulation and control.
  • Non-Blocking Operation: Event handling occurs in a separate thread.
  • Extensible: Easily integrates with existing Python applications.
  • Configuration: Supports customization of event types and parameters.

The project is actively maintained with recent commits indicating ongoing development. Documentation is available, and issue tracking is present, though the issue count is relatively low, which suggests good stability. The project has a significant number of stars and forks, indicating community interest and usage.

The mouse library benefits developers needing fine-grained control over mouse interactions in their Python applications. It's useful for tasks such as automated testing, creating custom input devices, or implementing advanced user interfaces. It offers a convenient alternative to platform-specific mouse control APIs, simplifying development and promoting code portability.

Languages:
Summarize:
Share:
Stars
958
Forks
141
Issues
94
Created
8 years ago
Commit
2 years ago
License
MIT
Archived
Yes
Updated 17 days ago

Similar Repositories