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
Release files for noahs-keyboard-tracker 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| noahs_keyboard_tracker-0.1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| noahs_keyboard_tracker-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / noahs_keyboard_tracker-0.1.0.tar.gz
| Download URL | noahs_keyboard_tracker-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8cc71cca87bbae6ef812fe2748f62942c469c8ef6775d633f285ef4f8dde9b5
|
|
BLAKE2b-256 checksum How to use checksums |
40c1ac9154813272e35545655d7ec8d8264c712fdb863627270171648c093d99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / noahs_keyboard_tracker-0.1.0-py3-none-any.whl
| Download URL | noahs_keyboard_tracker-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d0f82b556015b68612e18af3dd7eabcee97eaa7ebc867224fd3b1d0c2d4ad08
|
|
BLAKE2b-256 checksum How to use checksums |
9d1728fef04929a22b36136c6185cd192178196facd213c3a55b511ab33715ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|