Login and get coding
In the previous Bite, you learned how to create an application and added several commands for that app.
Now, let's create some subcommands to further organize your application, see the subcommands documentation.
Create a subcommand "algorithm" from which further subcommands "sum", "subtract", ... can be run as following:$ python script.py algo sum
$ python script.py algo substract
We already reorganized the code for you into
comparison.py, which both contain the function and command definitions from the previous exercise.
Note: Due to the how the platform works with AWS Lambda, mentioned modules will be downloaded and added to
/tmpwhich is being appended to
sys.pathso they can be imported.
All you need to do is to add the applications (Typer
comparison.pyinto a single application using the