Developing a Flask application

Hoda Saiful
2 min readMay 5, 2021

Python flask is a micro web framework. It helps build scalable web based applications and has become popular with Data Scientists empowering them build end to end analytics based solutions, leveraging python code and tools like Dash

Here I build a simple flask application that takes an input from the browser, processes the input and displays the results back to the browser. Additionally, we also create a log file .

A demo of the application

Pythonic code

The function count takes in a sentence; iterates over individual elements of the sentence; for elements that qualify as a character (ASCII range of A-Z and a-z), checks if the character is a vowel or a consonant. Finally displays the count of vowels and consonants in the sentence.

Tying the pieces together and building a flask application

Folder Structure

The mechanics

Code for the application

Available on my github page

--

--

Hoda Saiful
Hoda Saiful

Written by Hoda Saiful

When I have the time to write

No responses yet