Skip to main content

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.

Metadata

Release files for getchar 2.0.0

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

Source distribution (sdist)

Source distribution for getchar 2.0.0
File Size Uploaded
getchar-2.0.0.tar.gz 2.0 kB Details

Built distribution (wheel)

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

Total release size: 4.2 kB

Release files / getchar-2.0.0.tar.gz

Download URL getchar-2.0.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3304ca6608705edb2d76ae57961830f5942b580bec574ad25c10b0c518405bb5
BLAKE2b-256 checksum
How to use checksums
690e6fd79783a8a822f0ddc235dd673f09e1d8d08150ae0dfeb11e507ea2cd74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / getchar-2.0.0-py3-none-any.whl

Download URL getchar-2.0.0-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06f6a84f4fb765ae6f44764c6db7f26dc5f6b41a3719d09eb7e1121fd8b59216
BLAKE2b-256 checksum
How to use checksums
03e9d21537ad9bc70ab91b36b1ecd92042c7dfe593395a673415a52e406cbbfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.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