Skip to main content

Simple, cross-platform macros/GUI automation for python

Project description

[mac]ro + [py]thon, pronounced like magpie.

If you find this software useful, consider becoming a patron

This package provides easy keyboard/pointer/window management macro creation and GUI automation for python versions 2.7 and 3.4+. Currently it works on Windows and Linux (both under X and with limited functionality under Wayland). Among it’s features are:

  • Low level hooks for keyboard, pointer events
  • A hook for window creation, destruction and focus change
  • Support for registering hotkeys and hotstrings
  • Simulating keyboard/pointer events
  • Providing platform independent definition/mapping of keys/buttons
  • Listing open windows
  • Managing open windows
  • And more!


Window management functionality is not available under Wayland.

More, keyboard and pointer functions require root access under Wayland.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for macpy, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size macpy-0.1.3-py3-none-any.whl (130.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size macpy-0.1.3.tar.gz (114.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page