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
).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for key-pressing-0.1.3.132321b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aef5ac395b7985b45700457a10d8a26378a29f77dcd807105eb24e4edeef04d |
|
MD5 | fd1dabd979ebdab13b80c64e352afaff |
|
BLAKE2b-256 | 762b33aa0e8b583a5973bb436edbbc6531429ee6f1de3431fef78886bd53d2cc |