Skip to main content

A Python module to get the pressed key

Project description

getkey

A Python module to get the pressed key

Installation

From PyPI

pip3 install pygetkey

From GitHub

pip3 install git+https://github.com/donno2048/getkey

Usage

import getkey
getkey.get_key() # Wait for a key to be pressed and return it
getkey.get_last_key() # Don't wait for a key to be pressed and return the last pressed key (mainly for "async" loops)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygetkey-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page