towhee.command.user.UserCommand¶
- class towhee.command.user.UserCommand(args)[source]¶
Bases:
objectImplementation for subcmd towhee login, towhee whoami and towhee logout.
Methods
Erases the credential store relative to https://towhee.io.
installLog in with https://towhee.io account.
Log out with https://towhee.io account.
whoamiWrite a token to store credentials.
- erase_from_credential_store(username=None) None[source]¶
Erases the credential store relative to https://towhee.io. If no username is specified, will erase the first entry.
- Parameters:
username (str) – authorized username.
- login() None[source]¶
Log in with https://towhee.io account.
- logout() None[source]¶
Log out with https://towhee.io account.