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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cwinput-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 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.1.tar.gz
Algorithm Hash digest
SHA256 0f33ed00d8a6836c5a7fe412366e99c4cd00bfe81282e7abf6e0ef42ad7296e2
MD5 ce0f6629773dd366216a045bf9b23103
BLAKE2b-256 f20c36337fe3d4d4c3e10361ec695971be6ed7e5fa76491a409638d05f60fed4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cwinput-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a78b2cd7124e7243417efa47443e81ab1af90f2ae1db28a993d95f3d4e16aa6e
MD5 5a65cdc4d084c1933a46b10726746a10
BLAKE2b-256 c26692c26f7aaafe996ee681ff58f6aec901300d19a966952e50d8c376e10b4b

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