getpass
This package implements useful tools and functions for producing python packages or tools implemented in python.
Cross-Platform Password Input with Various Masking Options
a better way to get passwords and secret tokens from users input
Python tool to get a password from the user and display a masked value at the prompt.