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.2.tar.gz (24.7 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.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_etc-0.1.2.tar.gz
  • Upload date:
  • Size: 24.7 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.2.tar.gz
Algorithm Hash digest
SHA256 6682fdca6b035400baf5cd211ed11b600dc9c57fee062a286880afe844a2509b
MD5 1c9270cd01366da5545f5f4773ec4852
BLAKE2b-256 bb871351796cc79fac67a6856c8a9c2b147b1a53f097a6186b35237ef8265d50

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_etc-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: scitex_etc-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 517ebaaeb05d523a4e0b0c93c7d91665902189637368f0eafd8c2f0c73885497
MD5 fc7025b73cde65d4f3ecdfa25a5a76a4
BLAKE2b-256 0a892832e105ab9bc32d72e50d43fd9f54e561ec7f1fe63ba05543baaf670fdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_etc-0.1.2-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