Interactive keyboard input utilities (wait_key, count)
Project description
scitex-etc
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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff521c109445d6bd7474e0c0c91536499b2296c91cf39848adebcd388343dfba
|
|
| MD5 |
2fb33b4a825d61dc7c64db00bbf1c467
|
|
| BLAKE2b-256 |
5e1e59234ec1e762c5856d51bbefb2623291422bfa6dfd2c5e59cf929a47d0dc
|
Provenance
The following attestation bundles were made for scitex_etc-0.1.4.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.4.tar.gz -
Subject digest:
ff521c109445d6bd7474e0c0c91536499b2296c91cf39848adebcd388343dfba - Sigstore transparency entry: 1396645731
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-etc@3613eb21cd85b29a275fbd80e85e32e3b2729b99 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3613eb21cd85b29a275fbd80e85e32e3b2729b99 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1883fd72e43db67e86df8896372af0535d2558a40a692e5ff680318de14b32a4
|
|
| MD5 |
5f5233f5a681b1853da33c9cdb76093c
|
|
| BLAKE2b-256 |
e2a7944acbbfc93c1bc66d3a26367fbbd983cbca2c8e83e614e1f46a6c3cf857
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_etc-0.1.4-py3-none-any.whl -
Subject digest:
1883fd72e43db67e86df8896372af0535d2558a40a692e5ff680318de14b32a4 - Sigstore transparency entry: 1396645768
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-etc@3613eb21cd85b29a275fbd80e85e32e3b2729b99 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3613eb21cd85b29a275fbd80e85e32e3b2729b99 -
Trigger Event:
push
-
Statement type: