Automated mouse clicking script
Automated mouse clicker script.
I've only tested this packag with Python 3.9. You'll need to download and install it, or use pyenv and set your local version with this command:
pyenv local 3.9
I also recommend using pipx for installing standalone packages, as it will add a layer of isolation to your installation. But pip will work too:
pipx install clickpy # -- or -- pip install clickpy
Please type annotate any mocks used, which should be
MockerFixture if you use pytest-mock.
The following is for developers. You don't need to run these scripts to install and run from pip.
# define your local python version pyenv local 3.9.6
# install all deps from pyproject.toml poetry install
To run clickpy with poetry. This will activate the virtualenv, and then run the script defined in
[tool.poetry.scripts] in pyproject.toml.
poetry run clickpy
TODO: might look into tox later, also pre-commit looks interesting.
# activate virtual environment first poetry shell # run tests, also outputs code coverage pytest -v --cov=clickpy --capture=sys tests/
# run this to generate report coverage html
Open coverage report in bash. This should also work with Windows Git Bash
# open html coverage doc, windows doesn't have open. [ -x "$(command -v open)" ] && open htmlcov/index.html || start htmlcov/index.html
Here's a Powershell version:
And also a fish version.
# same command for fish shell [ -x (command -v open) ] && open htmlcov/index.html || start htmlcov/index.html
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for clickpy-0.4.0a0-py3-none-any.whl