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.4.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.4-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_etc-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 ff521c109445d6bd7474e0c0c91536499b2296c91cf39848adebcd388343dfba
MD5 2fb33b4a825d61dc7c64db00bbf1c467
BLAKE2b-256 5e1e59234ec1e762c5856d51bbefb2623291422bfa6dfd2c5e59cf929a47d0dc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scitex_etc-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1883fd72e43db67e86df8896372af0535d2558a40a692e5ff680318de14b32a4
MD5 5f5233f5a681b1853da33c9cdb76093c
BLAKE2b-256 e2a7944acbbfc93c1bc66d3a26367fbbd983cbca2c8e83e614e1f46a6c3cf857

See more details on using hashes here.

Provenance

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