Skip to main content

Interactive keyboard input utilities (wait_key, count)

Project description

scitex-etc

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

Interactive keyboard input utilities for the SciTeX ecosystem.

Problem and Solution

# Problem Solution
1 Scripts that pause for a keypress need raw-stdin + termios gymnastics -- 15 lines of OS-dependent boilerplate wait_key() / count() -- one import; handles Linux/macOS/Windows; falls back cleanly when stdin isn't a TTY

Installation

pip install scitex-etc

Usage

from scitex_etc import wait_key, count

key = wait_key()  # Wait for a single keypress
count(5)  # Countdown timer

License

AGPL-3.0

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

scitex_etc-0.1.5.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_etc-0.1.5-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file scitex_etc-0.1.5.tar.gz.

File metadata

  • Download URL: scitex_etc-0.1.5.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_etc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1287c60a0a3be8b27a04244d4f4dab9893d3ed8546613c6d64116b85f60ad12d
MD5 87907e509f34da7d52219dfea78fa8d6
BLAKE2b-256 7a5ba4137fcef2324dd17c0bd6882c4566aedad591f59e758ffe6d386e1a608a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_etc-0.1.5.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-etc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_etc-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: scitex_etc-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_etc-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ea9079fe4f6f4f9f05fe3b45c1c0e65ec3ec7fbb3a7b9bb8db938b2102b16be6
MD5 25b9dc2f17eb4ed20e62f8f40346db08
BLAKE2b-256 accee842a08e41da2952944da99aa376b8c93a654cdb1d6c36d889f8df7a5a2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_etc-0.1.5-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-etc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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