Skip to main content

Python bindings to ydotool

Project description

PyYdotool

Python bindings for ydotool

This project was inspired by pyxdotool

All ydotool commands are chainable.

Example

from ydotool import YdoTool
ydo = YdoTool().key("ctrl+alt+f1")
ydo.sleep(2000).type("echo 'foo bar'")
# execution is done here
ydo.exec()

Requirements

Access to /dev/uinput device is required. It can be set by adding udev rules.
Example tested on Fedora:

/etc/udev/rules.d/60-uinput.rules

KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"

This rules will allow regular user logged in to the machine to access uinput device.

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

pyydotool-0.5.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

pyydotool-0.5.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pyydotool-0.5.2.tar.gz.

File metadata

  • Download URL: pyydotool-0.5.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.10.1 Linux/5.15.12-200.fc35.x86_64

File hashes

Hashes for pyydotool-0.5.2.tar.gz
Algorithm Hash digest
SHA256 17f4b6b8b0a2e1dcb7964ec5d1e0fe72fef62e306b1d5262312bd3c949ee5776
MD5 52588951967e06f8b7fb79daa5ba6742
BLAKE2b-256 99402a50718fb0f30df8ab52348e4b04c0dcfa47cb4a0dce60f69c143c6f3605

See more details on using hashes here.

File details

Details for the file pyydotool-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: pyydotool-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.10.1 Linux/5.15.12-200.fc35.x86_64

File hashes

Hashes for pyydotool-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74f60b7482fdb8c7f4b564d1693925f914f189ed530168175f2256bb8b10a73c
MD5 172efe833966d988083efdae4aa66178
BLAKE2b-256 bd5ee3ede6582e8f9367c3792c7d1064ff0f83d566e5070becc0f2e7a47775dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page