Skip to main content

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/uinput device is required. It can be set by adding udev rules.
    Example tested for 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-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pyydotool-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for pyydotool-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8c6ef2f40061781099e62dee44f3870d3fa574e409a88b374aaf6bf7138929fa
MD5 6647bde71b1c902392a1e91a7339d66f
BLAKE2b-256 577bf8e6b6e25769217ac19d2ad7c3d07d2b600fe21c6517e06603c0564f82d7

See more details on using hashes here.

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

Hashes for pyydotool-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b45364c0f0bf448dd9f7c9ce0ccd5d50861a54998e21645e4cd2fcf6fc7dd91
MD5 cd351cd02af286f0d081543bd0d3180c
BLAKE2b-256 152b9e40c7e106bc3e439ed666fce379a20f7d8869b6885d8ef5be1570de9a67

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