Skip to main content

A simple getpass alternative with masking feature

Project description

Maskpass

Maskpass is a Python library used for asking password by masking it or not echoing it at all

Installation

Use the package manager pip to install maskpass.

pip install maskpass

Usage

This module contains a single function askpass() having two optional arguments prompt and mask. The default value for prompt is Enter Password: and for mask is *

import maskpass

password=maskpass.askpass()

Use mask="" for not echoing anything into the terminal. (Like entering sudo passwords in *nix)

The function returns the entered password in string format

Screenshots

Example GIF

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Issues

Currently I have only tested it in Windows 10 and Manjaro Linux, so I'm not sure it works in macOS. It doesn't work in QtConsole, Jupyter Notebook or PyCharm console.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maskpass-0.1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

maskpass-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page