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.

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

getchar-2.0.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

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

Hashes for getchar-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3304ca6608705edb2d76ae57961830f5942b580bec574ad25c10b0c518405bb5
MD5 778029b511b20f895f4d225281756fef
BLAKE2b-256 690e6fd79783a8a822f0ddc235dd673f09e1d8d08150ae0dfeb11e507ea2cd74

See more details on using hashes here.

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

Hashes for getchar-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06f6a84f4fb765ae6f44764c6db7f26dc5f6b41a3719d09eb7e1121fd8b59216
MD5 820446857aa808e15b6022db8e2988d9
BLAKE2b-256 03e9d21537ad9bc70ab91b36b1ecd92042c7dfe593395a673415a52e406cbbfd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page