pwinput


Namepwinput JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/asweigart/pwinput
SummaryA cross-platform Python module that displays **** for password input. Works on Windows, unlike getpass. Formerly called stdiomask.
upload_time2023-02-16 17:04:14
maintainer
docs_urlNone
authorAl Sweigart
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            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](https://www.patreon.com/AlSweigart).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/asweigart/pwinput",
    "name": "pwinput",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Al Sweigart",
    "author_email": "al@inventwithpython.com",
    "download_url": "https://files.pythonhosted.org/packages/4b/c9/f6d03c2214c282251baa38c6be08f5b9f81f1ea488716cd2335e7e190b58/pwinput-1.0.3.tar.gz",
    "platform": null,
    "description": "PWInput\r\n======\r\n\r\nA cross-platform Python module that displays **** for password input. Formerly called stdiomask.\r\n\r\nInstallation\r\n------------\r\n\r\nTo install with pip, run:\r\n\r\n    pip install pwinput\r\n\r\nQuickstart Guide\r\n----------------\r\n\r\nThe `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.\r\n\r\nTypical usage:\r\n\r\n    >>> import pwinput\r\n    >>> pwinput.pwinput()  # Show * for each typed character.\r\n    Password: *********\r\n    'swordfish'\r\n    >>> pwinput.pwinput(prompt='PW: ')  # Show a custom prompt.\r\n    PW: *********\r\n    'swordfish'\r\n    >>> pwinput.pwinput(mask='X')  # Show a different character when user types.\r\n    Password: XXXXXXXXX\r\n    'swordfish'\r\n    >>> pwinput.pwinput(mask='') # Don't show anything when user types (falls back and calls getpass.getpass()).\r\n    Password:\r\n    'swordfish'\r\n\r\nContribute\r\n----------\r\n\r\nIf you'd like to contribute to pwinput, check out https://github.com/asweigart/pwinput\r\n\r\nSupport\r\n-------\r\n\r\nIf you find this project helpful and would like to support its development, [consider donating to its creator on Patreon](https://www.patreon.com/AlSweigart).\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A cross-platform Python module that displays **** for password input. Works on Windows, unlike getpass. Formerly called stdiomask.",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/asweigart/pwinput"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4bc9f6d03c2214c282251baa38c6be08f5b9f81f1ea488716cd2335e7e190b58",
                "md5": "7d2b48529556b00b90eae2aed96a79d9",
                "sha256": "ca1a8bd06e28872d751dbd4132d8637127c25b408ea3a349377314a5491426f3"
            },
            "downloads": -1,
            "filename": "pwinput-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "7d2b48529556b00b90eae2aed96a79d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4433,
            "upload_time": "2023-02-16T17:04:14",
            "upload_time_iso_8601": "2023-02-16T17:04:14.592123Z",
            "url": "https://files.pythonhosted.org/packages/4b/c9/f6d03c2214c282251baa38c6be08f5b9f81f1ea488716cd2335e7e190b58/pwinput-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-16 17:04:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "asweigart",
    "github_project": "pwinput",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "tox": true,
    "lcname": "pwinput"
}
        
Elapsed time: 0.30146s