Skip to main content

Key pressing detecting for Python.

Project description

print_function_py2

Usage

This package is using for detect pressing in Python.

How to use it

Import it by: import key_pressing. No any additional modules or packages will be installed. You need to install bash if you are using POSIX.

>>> import key_pressing
>>> key_pressing.detect_onekey()
O
'O'
>>> key_pressing.detect_escape()
^[[7m
'\x1b[7m'
>>> key_pressing.detect_keys(12)
Hello world!
'Hello world!'

If you cannot install the package by pip, please download the tar.gz file and extract to sys.path(PYTHONPATH).

Known issues

  • Cannot be used on Win32 platform.
  • Cannot detect newline character correctly(got it as \x00).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

key-pressing-0.1.3.132321b0.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

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