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

SciTeX

Interactive keyboard input utilities for the SciTeX ecosystem.

Full Documentation · pip install scitex-etc


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

Quick Start

from scitex_etc import wait_key, count

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

1 Interfaces

Python API
from scitex_etc import wait_key, count

# Block until a single key is pressed; returns the key as a string.
key = wait_key()

# Countdown helper — prints "5… 4… 3…" and waits a second between each.
count(5)

Part of SciTeX

scitex-etc is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0


SciTeX

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.6.tar.gz (387.4 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.6-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_etc-0.1.6.tar.gz
  • Upload date:
  • Size: 387.4 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.6.tar.gz
Algorithm Hash digest
SHA256 9538ee8c830f8f91e30d326d46c09eb6cf1da1e9584f2a4ebe3195d9272e2158
MD5 daf610febff508277f67b321a54bda55
BLAKE2b-256 ba5e1693548ec566b48d3d94a474ff1d2822fbaf368d603e7802c275c9e80821

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scitex_etc-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 de12bf68419574eea40db9202573657efab0934bb72a1d892cc80a864dc91175
MD5 5026e5084fbf35f1c4c82973e0c6afbd
BLAKE2b-256 4d7108b879f1c5fff6806dfb509c5a58689c68877233f7f4bc3392f61b627109

See more details on using hashes here.

Provenance

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