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.3.tar.gz (3.9 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.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cwinput-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cwinput-0.1.3.tar.gz
Algorithm Hash digest
SHA256 84347cc3ece93eee9b7c76bb58c998683e07df91bd5e17c54dc5929f6171a6f3
MD5 97e5575a4de369c83e4d07c49a410b7c
BLAKE2b-256 cbe624bea153362a105654f969f83d560d7fd8d79d9e17f2873dc93c0cfd0102

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cwinput-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cwinput-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e51010be1082fdf434087b4a4b24773674b699ab007fe4790adff1f550d50c46
MD5 7239d90659dc4dada9174cf6f7fd2fcc
BLAKE2b-256 00d1f413217b773a5b725cd525f43a58c5dcb061bcec73c688c4264dc9e1939b

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