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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cwinput-0.1.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.tar.gz
Algorithm Hash digest
SHA256 7431dac2deb2dfb013c47513dcac05360e5339f2951bc57b26f4913431c26966
MD5 f168a2a6442f02988ebc25255f13fea9
BLAKE2b-256 bdab3451d097f5cd56115a806642fac5be789f5a3a7a1036ec9166f9160b130b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cwinput-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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-py3-none-any.whl
Algorithm Hash digest
SHA256 bb069485f758e8726cf5a30d6e390e0f5d72733e41c5759007bb4500174702b2
MD5 162abf185274b3cd3512d3b65715e38a
BLAKE2b-256 8dabaf876c94d76cca89962da28bf2d74f579a90dd2390f2e6c98b399260268c

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