Skip to main content

Python bindings for libvinput

Installation

You can install the bindings this way:

$ python3 -m pip install vinput

Please note on Linux, you need libxdo installed.

Example

The simplest program is the following:

import vinput
l = vinput.EventListener(True)
l.start(print)

You can log mouse buttons and movements too:

import vinput
l = vinput.EventListener(True, True, True)
l.start(print, print, print)

Donating

If you feel this library has been helpful, please consider supporting me by donating through my Ko-Fi. Thank you!

License

This software is licensed under the AGPLv3 license, more info in the LICENSE file.

Release files for vinput 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vinput 0.6.3
File Size Uploaded
vinput-0.6.3.tar.gz 100.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vinput 0.6.3
File Interpreter ABI Platform
vinput-0.6.3-py3-none-any.whl Python 3 none any Details

Total release size: 200.0 kB

Release files / vinput-0.6.3.tar.gz

Download URL vinput-0.6.3.tar.gz
Size 100.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2e6b3ffc8d4cfdcf1e7257d7c98d9c982e069020b83906e5b543f50b371d497c
BLAKE2b-256 checksum
How to use checksums
2f8f0f837b190279051b9ed8d57bafa593350877b192c5292f4268c04d05f300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / vinput-0.6.3-py3-none-any.whl

Download URL vinput-0.6.3-py3-none-any.whl
Size 99.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecdbb366606fab12f3add277c4a1493d8cfd07959236dc73d461262f1adec93f
BLAKE2b-256 checksum
How to use checksums
1f7846e264f77f7132823315062363d72756de8cd90a6075a91177585859b096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.6.3 This release

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page