Python wrapper around xautomation because Python is disco super-fly. You can use this to script mouse and keyboard actions in GNU/Linux.
Requirements
This requires xautomation to be installed (duh this is a wrapper don’t be a goofball).
Installation
You can install Predestinate from PyPI via pip like so:
pip install predestinate
Usage
Predestinate has been used in my own tests to great effect, and was just implemented tonight (2013-07-25) to provide mouse movement with finger motions via the LEAP Motion controller by a hacker who goes by “dgonyeo”.
I’d like to spend more time on documentation and whatnot, but am under the weight of other projects at the moment. I can tell you that you can implement it quite easily by taking a quick look at the code and comments to see what methods you can call. Looking at man xte can also be of great use, especially to get the names of keys. Remember, you do need to have xautomation installed for Predestinate to work.
You can start using Predestinate quite easily like so:
from predestinate import MouseGod
mg = MouseGod()
mg.move(100, 200)
mg.move(10, 30, relative=True)
# And much more!
from predestinate import KeyGod
kg = KeyGod()
kg.key_down('Escape')
# And much more!
I’ll be expanding this documentation much more in the future, especially as I complete my summer internship. Thanks for checking it out! Feel free to ask questions and open tickets for bugs and feature requests. I appreciate it. :)
License
Predestinate is relased under the GPLv3+ license.
Metadata
Release files for predestinate 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| predestinate-0.1.3.tar.gz | 7.6 kB | Details |
Release files / predestinate-0.1.3.tar.gz
| Download URL | predestinate-0.1.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a583fe9c456008bd3e6b8396e095f9953c86c42fddca4f8b07c62f4ce620acab
|
|
BLAKE2b-256 checksum How to use checksums |
c8a83a83903d475c0fd214441d42fdebe9c9e6e75a5bc2618dc93fb2c414ab4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |