avatar Bite 362. Add a Password Prompt to Your Command Line Interface (CLI)

Let's get serious. Your Command Line Interface (CLI) works and you want to authenticate who is using your application.

Here is a simple example of how to receive credentials via a password prompt.

Refer to Typer password documentation for more help.


Login and get coding
go back Intermediate level
Bitecoin 3X

9 out of 9 users completed this Bite.
Will you be Pythonista #10 to crack this Bite?
Resolution time: ~8 min. (avg. submissions of 5-240 min.)

Focus on this Bite hiding sidebars, turn on Focus Mode.
We use Python 3.8