Skip to main content

PWInput

A cross-platform Python module that displays **** for password input. Formerly called stdiomask.

Installation

To install with pip, run:

pip install pwinput

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 pwinput.pwinput() function instead.

Typical usage:

>>> import pwinput
>>> pwinput.pwinput()  # Show * for each typed character.
Password: *********
'swordfish'
>>> pwinput.pwinput(prompt='PW: ')  # Show a custom prompt.
PW: *********
'swordfish'
>>> pwinput.pwinput(mask='X')  # Show a different character when user types.
Password: XXXXXXXXX
'swordfish'
>>> pwinput.pwinput(mask='') # Don't show anything when user types (falls back and calls getpass.getpass()).
Password:
'swordfish'

Contribute

If you'd like to contribute to pwinput, check out https://github.com/asweigart/pwinput

Support

If you find this project helpful and would like to support its development, consider donating to its creator on Patreon.

Metadata

Release files for pwinput-eoleedi 1.0.3.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pwinput-eoleedi 1.0.3.post1
File Size Uploaded
pwinput_eoleedi-1.0.3.post1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pwinput-eoleedi 1.0.3.post1
File Interpreter ABI Platform
pwinput_eoleedi-1.0.3.post1-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / pwinput_eoleedi-1.0.3.post1.tar.gz

Download URL pwinput_eoleedi-1.0.3.post1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a5c3cec21c33a1ea0b8edaa57741a92e17f1d18638f62fa0ea7ade06f9902e28
BLAKE2b-256 checksum
How to use checksums
a72ca695f6494ea20bd47e227f0de297bd5b0ad20cf6b38fd8153765d32ea3ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2025.

Transparency log

Release files / pwinput_eoleedi-1.0.3.post1-py3-none-any.whl

Download URL pwinput_eoleedi-1.0.3.post1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a44f9338ff9947041e3ff13e80b8d8712bb4c725be1d0bfda518c8b384137935
BLAKE2b-256 checksum
How to use checksums
80033b98c77a21e2fe6cf4e6926858e9da1d9659b88079248c616e90c09d5fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.3.post1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page