Creating Menu using Python Automation

Lakshmi Priya Patro
3 min readNov 7, 2020

Python is an easy-to-learn programming language that allows organizations to script custom automation and reap the time-savings. Using this concept of the python automation we are here-by creating a menu to launch different technologies like Big Data Hadoop, Docker, DSA, Machine learning and few more concepts by just providing its numeric representation.

The above image shows that to run any program we need to get authenticated first. If here the password gets wrong then it will deny the access of the user, so as it could be protected from any malicious user.

After authentication, menu will pop up to ask our choice of technology to be launched. By pressing the respective number shown in menu we can easily enter to the domain of that technology. For example Press 1 to go into the domain of BIG DATA HADOOP.

Here comes the next step i.e. sub-menu of Hadoop which shows the process to create a Hadoop cluster. For example by pressing 1 we can set the hdfs-site.xml file and enter the required data in it. Press 2 for the same as to create core-site.xml file. Like wise it will satisfy all the process for creating a Hadoop cluster.

If we want to launch an AWS instance, we can choose 2 and then by sub-menu we can complete the configuration and process to launch the instance.

By pressing 3, we can use machine learning concepts.

Docker is a tool designed to create, deploy, and run applications by using container technology. Containers allow a developer to package up an application with all of the part it needs, such as libraries and other dependencies, and deploy it as one package. By using automation with python and linux we can easily install docker and use it to run containers.

By pressing 5, we can check the time and memory of our CPU takes while running any program. Press 1 to know the time complexity of CPU and how efficiently it works. And Press 2 to know the memory used by the program.

By pressing 6, we can check the python version and run python commands.

By pressing 7, you can exit from the menu. If you aren’t willing to choose any of these or your task is completed you can easily get out from it.

Thanks for reading!!

--

--