No description
  • Python 91.4%
  • Shell 8.2%
  • Nix 0.4%
Find a file
2026-03-10 16:21:04 -05:00
.git-hooks Add pre-push hook 2025-03-27 23:22:22 -05:00
package smaller config fixes 2025-04-11 15:05:50 -05:00
.gitignore smaller config fixes 2025-04-11 15:05:50 -05:00
.pre-commit-config.yaml v.1.3.0 - Setup and comply with pylint, breaking changes. 2025-04-11 14:30:17 -05:00
AGENTS.md Fuck AI 2026-03-10 12:14:13 -05:00
build.py v.1.3.0 - Setup and comply with pylint, breaking changes. 2025-04-11 14:30:17 -05:00
editor.py v.1.3.0 - Setup and comply with pylint, breaking changes. 2025-04-11 14:30:17 -05:00
LICENSE LICENSE 2025-04-11 13:21:15 -05:00
main.py v.1.3.0 - Setup and comply with pylint, breaking changes. 2025-04-11 14:30:17 -05:00
poetry.lock poetry update 2024-05-13 11:01:21 -05:00
pylintrc Update pylint config 2026-03-10 16:21:04 -05:00
pyproject.toml poetry update 2024-05-13 11:01:21 -05:00
pyproject.toml.backup Initial Commit 2023-10-01 19:45:35 -05:00
README.md v.1.3.0 - Setup and comply with pylint, breaking changes. 2025-04-11 14:30:17 -05:00
replit.nix Initial Commit 2023-10-01 19:45:35 -05:00

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?