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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_etc-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 74a3a03b5bf8f8606b7ba90db0071d2dc0d8ddc31cc169a65a1cd8796c89d048
MD5 73c350662db3ccda36cedb78e1776e97
BLAKE2b-256 e220045b870d310ade317d8d7df937f19b0c7bdc14859b1303a90392c46da36d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scitex_etc-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c38c93cc4c5d9e4dad136723fb91f498c962388345c5021d3f634a47c00699f
MD5 22807805e1f136052225a3c581c886b9
BLAKE2b-256 d3e742456e84a11b58159eef0a13ca785ee289b76ef0e8cf410d314792c84999

See more details on using hashes here.

Provenance

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