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

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

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help