BaseClient.login(username=None, provider=None)[source]

Depending on the server’s authentication method, this will prompt for username/password:

>>> c.login()
Username: USERNAME
Password: <input is hidden>

or prompt you to open a link in a web browser to login with a third party:

>>> c.login()
You have ... minutes visit this URL


and enter the code: XXXX-XXXX