getpass
This package implements tools to build python package and tools.
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.