Alena Your personal Assistant

Azeemushan Ali
3 min readAug 22, 2020

Hello and welcome to all.In this article we will be getting some hands on knowledge over some of the leading programming language and that is Python. Before moving on further with the task let us first understand the agenda.

Creating a Command line personal assistant which will help you in doing some day to day tasks. It will cover commands like-

  1. Search your query in Stack Overflow
  2. Search your query in Wikipedia.
  3. Tell you today’s news.
  4. Send Email on your behalf.
  5. Tell you the current date and time.
  6. Play music.
  7. Ask about it’s creator.
  8. Open your IDE,Notepad.
  9. Open your Chrome Web browser.
  10. Search anything on YouTube.
  11. If confused about it’s ability,ask for what do you do?
  12. Take help for the documentation of each command.
  13. To end it,ask for shut down or simply say shutdown.

So let us move directly to the one of the best python beginner's project.

Before heading up, lets talk something about Python.Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python’s design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

Libraries used-

  1. pyttsx3 — For text to speech conversion.
  2. os — Launching OS commands and files.
  3. smtplib — For sending emails.
  4. wikipedia — For getting info from wikipedia.
  5. datetime — For current date and time.
  6. webbrowser — For launching any URL in Web Browser.
  7. bs4 & urllib — For web scraping.

Now let us move to the code.It is created using simple if and else and some libraries.

Hope you find that code easy and readable.Now lets see how it works.

And we can also do some more things in this task like I have created for this code in this way that our programs is taking input in Text form. But in the next update we will be focusing on voice recognition and making it more professional.And so for this it, to get the latest version of alena, don’t forget to fork my Repo.

All the codes discussed earlier can be found on my Github Repo & connect with me on Linkedin !!

Thank you Everyone for reading .!! Bella Ciao

--

--