A simple tool for Mac, Windows and Linux for monitoring keyboard input
Project description
Usage: noahs_keyboard_tracker
This library provides a simple way to asynchronously monitor for keyboard input.
Getting Started
First, install the library (after uploading to PyPI):
pip install noahs_keyboard_tracker
from noahs_keyboard_tracker import start_keyboard_tracker, get_key_states, stop_keyboard_tracker
print("press q to stop tracking")
start_keyboard_tracker()
go = True
while go:
states = get_key_states()
keys_detected = []
for key in states.keys():
keys_detected.append(key)
if len(keys_detected) > 0:
print(f"DETECTED: {keys_detected}")
if "q" in keys_detected:
go = False
time.sleep(0.1)
stop_keyboard_tracker()
Check out Source Code
https://github.com/jonesnoah45010/keyboard_tracker
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noahs_keyboard_tracker-0.1.0.tar.gz.
File metadata
- Download URL: noahs_keyboard_tracker-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8cc71cca87bbae6ef812fe2748f62942c469c8ef6775d633f285ef4f8dde9b5
|
|
| MD5 |
664987e5140d3ae8d475e394bbd42bbe
|
|
| BLAKE2b-256 |
40c1ac9154813272e35545655d7ec8d8264c712fdb863627270171648c093d99
|
File details
Details for the file noahs_keyboard_tracker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: noahs_keyboard_tracker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d0f82b556015b68612e18af3dd7eabcee97eaa7ebc867224fd3b1d0c2d4ad08
|
|
| MD5 |
cea858b9acdcf59bb675008cf92e6263
|
|
| BLAKE2b-256 |
9d1728fef04929a22b36136c6185cd192178196facd213c3a55b511ab33715ec
|