Skip to main content

A way to capture keystrokes

Project description

fkeycapture

This is a simple and easy to use package that allows you to capture individual keystrokes from the user.

Forms:

  1. (Default) Recive key as a string
  2. Recive key as bytes (get only)
  3. Recive key as ints (getnum only)

How to Use:

  1. from fkeycapture import get, getnum, getchars
  2. Use get like this: get(keycount = any int, returnBytes = True or False)
  3. Use getnum like this: getnum(keycount = any int, ints = True or False)
  4. Use getchars like this: getchars(keycount = any int, chars = list of chars, returnBytes = True or False)

Change log:

v.1.3.0:

BREAKING CHANGE: In order to comply with pylint, the methods that previously took a bytes argument now take a returnBytes argument instead.

v.1.2.7:

Make some small type hinting changes, update .pyi file

v.1.2.6:

Add new option to use os.read instead of sys.stdin.read

v.1.2.5:

Add support for deleting chars in all methods, also completely removed the help command from the code for space reasons

v.1.2.4:

Mypy support

v.1.2.3:

Project links updated

v.1.2.2:

Internal improvements, Changelog improved

v.1.2.1:

Changelog issue fixed, removed the help command from 1.0.10

v.1.2.0

Type hinting, docstrings, and int support for getnum!

v.1.0.10

Now includes a help command! Use fkeycapture.help() to recive help. See v.1.2.1

v.1.0.9

Fixed README issues in 1.0.8

v.1.0.8

Added getchars method

v.1.0.7

Added the getnum method

v.1.0.6

Finally made the package usable.

v.1.0.5

Repaired an issue in 1.0.4 which caused the module to cause a recusion error.

v.1.0.4

Repaired an issue in 1.0.3 which caused the module to be unusable.

v.1.0.3

Repaired an issue in 1.0.0, 1.0.1, and 1.0.2 which caused the module to be unusable.

v.1.0.2 (Missing)

Unknown

v.1.0.1

Corrected incorrect text in certain files

v.0.0.6 (v.1.0.0 on PyPI)

Removed unnecessary code

v.0.0.5

Replit support?

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

fkeycapture-1.3.0.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.

fkeycapture-1.3.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file fkeycapture-1.3.0.tar.gz.

File metadata

  • Download URL: fkeycapture-1.3.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.12.21-amd64

File hashes

Hashes for fkeycapture-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9ae7fdf4e498bfc7482f9bfeaa8013b593614cd9455216b545d775317162319d
MD5 37f50da8b81ad03bc78a205677b411db
BLAKE2b-256 817743172ce55f4bcd288c47d08435b873b043fbfc349d1d1ac074d75fc91f0d

See more details on using hashes here.

File details

Details for the file fkeycapture-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: fkeycapture-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.12.21-amd64

File hashes

Hashes for fkeycapture-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a45a2a7bdccad913d03707a1d9dcd40c949bb995457bbc1f4d6688e757d63faa
MD5 8da63c1652e634bb051c5a9d6a376d27
BLAKE2b-256 c5039855ddc5b44f70727e3aca3dbbc664c0787ef53caa6888a2a159a54a2aeb

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