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.
The
termios
andtty
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.