The getch module does single-char input by providing wrappers for the conio.h library functions getch() (gets a character from user input, no output - this is useful for password input) and getche() (also outputs to the screen), if conio.h does not exist, it uses a stub-library using termios.h and other headers to emulate this behaviour:
import getch # ... char = getch.getch() # User input, but not displayed on the screen # or char = getch.getche() # also displayed on the screen
Hint: On Windows, you can use:
import msvcrt # ... char = msvcrt.getch() # or, to display it on the screen char = msvcrt.getche()
as a standard library alternative to this module
Metadata
Release files for getch 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| getch-1.0.tar.gz | 1.3 kB | Without provenance | Details for getch-1.0.tar.gz | |
| getch-1.0-python2.tar.gz | 1.2 kB | Without provenance | Details for getch-1.0-python2.tar.gz |
Release files / getch-1.0.tar.gz
| Download URL | getch-1.0.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6c22717c10051ce65b8fb7bddb171af705b1175e694a73be956990f6089d8b1
|
|
BLAKE2b-256 checksum How to use checksums |
cca4c696c05e0ff9d05b1886cb0210101083db7d330ff964a6d7cd98ad2b2064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / getch-1.0-python2.tar.gz
| Download URL | getch-1.0-python2.tar.gz |
|---|---|
| Size | 1.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be451438f7a2b389f96753aea39b6ed2540a390f1b9a12badcbc110cf9a5ce7f
|
|
BLAKE2b-256 checksum How to use checksums |
56f7cde35f44d267df7122005c40f1a15cf5e3c60ffc83a2ab00d11d99e9d8c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for getch 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.