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.2.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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cwinput-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c9214ac4a2bb0c240f7ca2182770890f361ad7a4fcd6b67775475311d606b189
MD5 209f552a6ffa16e3196496702625faf9
BLAKE2b-256 da1808bbe48fa9dd1b6cbdb2509326fcf8b3dbae1df211b4f3ee2207cc5463a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cwinput-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad3f3ba1a1c435fde3d4dbe5ca2b14202c29c228aa137394d8542ed0e13c298f
MD5 6f8eb2553c8c3658d6715edd138d2d68
BLAKE2b-256 83e21ee4c872af47d8c3f7e8526c5080585b95eaec8e4c4081e3d21e161ea18f

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