Python bindings to ydotool
Project description
PyYdotool
Python bindings for ydotool >= 1.0.1
This project was inspired by pyxdotool
All ydotool commands are chainable.
Example
from ydotool import YdoTool
ydo = YdoTool().key("29:1", "56:1", "59:1", "59:0", "56:0", "29:0") # press and release 'LeftCtrl+LeftAlt+F1'
ydo.sleep(0.5).type("echo 'foo bar'")
# execution is done here
ydo.exec()
Requirements
-
Ydotool >= 1.0.1
-
Access to
/dev/uinputdevice is required. It can be set by addingudevrules.
Example tested for Fedora:/etc/udev/rules.d/60-uinput.rulesKERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"
This rules will allow regular user logged in to the machine to access
uinputdevice.
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
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 pyydotool-1.0.0.tar.gz.
File metadata
- Download URL: pyydotool-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.10.2 Linux/5.16.8-200.fc35.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6ef2f40061781099e62dee44f3870d3fa574e409a88b374aaf6bf7138929fa
|
|
| MD5 |
6647bde71b1c902392a1e91a7339d66f
|
|
| BLAKE2b-256 |
577bf8e6b6e25769217ac19d2ad7c3d07d2b600fe21c6517e06603c0564f82d7
|
File details
Details for the file pyydotool-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pyydotool-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.10.2 Linux/5.16.8-200.fc35.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b45364c0f0bf448dd9f7c9ce0ccd5d50861a54998e21645e4cd2fcf6fc7dd91
|
|
| MD5 |
cd351cd02af286f0d081543bd0d3180c
|
|
| BLAKE2b-256 |
152b9e40c7e106bc3e439ed666fce379a20f7d8869b6885d8ef5be1570de9a67
|