mlhubber / mlhub

Machine Learning Model Repository Hub Command Line Tool.
MIT License
20 stars 12 forks source link

change ask_password to default python method #251

Closed davecatmeow closed 2 years ago

davecatmeow commented 2 years ago

The termios and tty libraries are only workable under Unix platforms, make it complicated to develop and debug code in Windows.

The getpass.getpass() method from the standard python library works under both Unix and Window platforms. It has the same behavior with Linux password input, without any echoing.

The previous method echos "*****" when input. If we would like to remain this behavior, then pwinput might be useful. But that would add a no-standard library requirement to mlhub module.