An input event recorder and player for automatic testing
Project description
Snitch, an input event recorder and player
Snitch is a Python3 program using the Qt5 framework for GUI and the pyautogui and pynput modules for automation.
Prerequisites
A working installation of Python3 with pip package installer.
In order to record and control the mouse on Linux systems, the packages python3-tk
and python3-dev
are required.
Installation
For now Snitch is available on the PyPI test repository. Install by running the command:
pip install snitch-ci
You can then run the program with:
snitch
Building from sources
First you need to install the dependencies with:
pip install -r requirements.txt
Then generate the code for Qt interface and assets using:
bash build.sh
You can now run the program as a python package:
python -m snitch
Note about scrot
The pyautogui on Linux depends on the scrot utility for screen captures. This utility only works with X11. The most recent versions of gnome-shell are based on Wayland instead of X11. For those versions, the scrot utility produces only black pictures.
One workaround is installing the Gnome native capture utility gnome-screenshot and creating a wrapper script acting as scrot. The most basic working way is putting the following script in the /usr/bin/scrot
file (and granting it execution permissions):
#! /bin/bash
gnome-screenshot -f $@
Project details
Release history Release notifications | RSS feed
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
Hashes for snitch_ci-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f446dd5251a1ed874850e7466df9732ccdcfaad5b004dab946ef36f9283241c |
|
MD5 | 2942e9e12c479354ba2cc39b7a4b6da3 |
|
BLAKE2b-256 | a0da3e9b3e46bf53d2ff852fd58fe7b3200ad77f85b7670b69aa6ffbb07e742e |