Skip to main content

Listen to raw console input

Project description

CWInput

Simple Windows-oriented library to read raw input from console using multithreading.

Installation

You can get this package from PyPi

pip install cwinput

Example

def listener(key: Key):
    print(f"Got {key} from keyboard")

keyboard = CWInput()
keyboard.subscribe(listener) # Add new listener

keyboard.run() # Run CWInput in a new thread
keyboard.join() # Joins CWInput thread to parent thread, inherited from Thread class

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

cwinput-0.1.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

cwinput-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file cwinput-0.1.4.tar.gz.

File metadata

  • Download URL: cwinput-0.1.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for cwinput-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4d3823210c86268da40d42f99b0353ed9aae26d99b5effaea7c1ac084b972b82
MD5 79172037e3116feda107a42a1b67b95c
BLAKE2b-256 ca3953a4670c35fcaba28c271b9767a9f06b6b60062384632fe014d92e4a7e4b

See more details on using hashes here.

File details

Details for the file cwinput-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cwinput-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for cwinput-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c22420cee10762de3b90a2c05744a4ce0d0d04459849d6919ebd0775aded001
MD5 bd65ecf1e78a8681be8c882e2bbdf5ea
BLAKE2b-256 4a9e2a17b6f09111c61583a60d46eae6ea3cc5c3b2cd3e9af3200bf0590ad459

See more details on using hashes here.

Supported by

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