mini_project_1.shell module¶
command shell for mini-project-1
-
class
mini_project_1.shell.MiniProjectShell(database, register_start=False)[source]¶ Bases:
cmd.CmdMain shell for mini-project-1
-
cmdloop(intro=None)[source]¶ Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
-
static
help_search_requests_city()[source]¶ Print the argparser help message for searching ride requests by city name
-
static
help_search_requests_lcode()[source]¶ Print the argparser help message for searching ride requests by location code
-
intro= 'Welcome to mini-project-1 shell. Type help or ? to list commands\n'¶
-
login(email, password)[source]¶ Login method
Check if a
LoginSessionalready exists for the shell if not attempt to login with the given email and password.If the login attempt is successful set the shell’s
login_sessionto the newly createdloginsession.LoginSession.
-
login_session= None¶
-
prompt= 'mini-project-1>'¶
-