Stdio Mask
A cross-platform Python module for entering passwords to a stdio terminal and displaying a **** mask, which getpass cannot do.
Installation
To install with pip, run:
pip install stdiomask
Quickstart Guide
The getpass.getpass() function in the Python Standard Library won't display "mask" characters as you type; it only displays nothing as you type. If you want mask characters to appear, you can use the stdio.getpass() function instead.
Typical usage:
>>> import stdiomask
>>> stdiomask.getpass()
Password: *********
'swordfish'
>>> stdiomask.getpass(prompt='PW: ')
PW: *********
'swordfish'
>>> stdiomask.getpass(mask='X')
Password: XXXXXXXXX
'swordfish'
>>> stdiomask.getpass(mask='') # Falls back and calls getpass.getpass()
Password:
'swordfish'
Contribute
If you'd like to contribute to Stdio Mask, check out https://github.com/asweigart/stdiomask
Release files for stdiomask 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stdiomask-0.0.6.tar.gz | 3.6 kB | Details |
Release files / stdiomask-0.0.6.tar.gz
| Download URL | stdiomask-0.0.6.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1e47069ead9e10bda150a26f7922ca01d2adc503042a9d7acf64877a2b9a3a6
|
|
BLAKE2b-256 checksum How to use checksums |
47a2f72fd263cecb11ed4cc96bd31608359e1df30349c665674e5c35ea9a72d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|