Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stdiomask

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stdiomask

A cross-platform Python module for entering passwords to a stdio terminal and displaying a **** mask, which getpass cannot do.

  • 0.0.6
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc