Non-blocking readchar
Project description
getchar
Cross-platform non-blocking stdin reading.
Variant of the readchar module (which is blocking).
How to use
from getchar import getkeys
while True:
keys = getkeys()
if len(keys) > 0:
print(keys)
getkeys() returns a list of keys. Length = 0 if no input.
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
getchar-2.0.0.tar.gz
(2.0 kB
view details)
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 getchar-2.0.0.tar.gz.
File metadata
- Download URL: getchar-2.0.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3304ca6608705edb2d76ae57961830f5942b580bec574ad25c10b0c518405bb5
|
|
| MD5 |
778029b511b20f895f4d225281756fef
|
|
| BLAKE2b-256 |
690e6fd79783a8a822f0ddc235dd673f09e1d8d08150ae0dfeb11e507ea2cd74
|
File details
Details for the file getchar-2.0.0-py3-none-any.whl.
File metadata
- Download URL: getchar-2.0.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f6a84f4fb765ae6f44764c6db7f26dc5f6b41a3719d09eb7e1121fd8b59216
|
|
| MD5 |
820446857aa808e15b6022db8e2988d9
|
|
| BLAKE2b-256 |
03e9d21537ad9bc70ab91b36b1ecd92042c7dfe593395a673415a52e406cbbfd
|