Interactive keyboard input utilities (wait_key, count)
Project description
scitex-etc
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
- The freedom to run your research anywhere — your machine, your terms.
- The freedom to study how every step works — from raw data to final manuscript.
- The freedom to redistribute your workflows, not just your papers.
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9538ee8c830f8f91e30d326d46c09eb6cf1da1e9584f2a4ebe3195d9272e2158
|
|
| MD5 |
daf610febff508277f67b321a54bda55
|
|
| BLAKE2b-256 |
ba5e1693548ec566b48d3d94a474ff1d2822fbaf368d603e7802c275c9e80821
|
Provenance
The following attestation bundles were made for scitex_etc-0.1.6.tar.gz:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-etc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_etc-0.1.6.tar.gz -
Subject digest:
9538ee8c830f8f91e30d326d46c09eb6cf1da1e9584f2a4ebe3195d9272e2158 - Sigstore transparency entry: 1417304796
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-etc@6c3bb39c31d84094208a3a853ec04a2b2802e64b -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6c3bb39c31d84094208a3a853ec04a2b2802e64b -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de12bf68419574eea40db9202573657efab0934bb72a1d892cc80a864dc91175
|
|
| MD5 |
5026e5084fbf35f1c4c82973e0c6afbd
|
|
| BLAKE2b-256 |
4d7108b879f1c5fff6806dfb509c5a58689c68877233f7f4bc3392f61b627109
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_etc-0.1.6-py3-none-any.whl -
Subject digest:
de12bf68419574eea40db9202573657efab0934bb72a1d892cc80a864dc91175 - Sigstore transparency entry: 1417304802
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-etc@6c3bb39c31d84094208a3a853ec04a2b2802e64b -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6c3bb39c31d84094208a3a853ec04a2b2802e64b -
Trigger Event:
workflow_dispatch
-
Statement type: