Social Icons

Sunday, July 26, 2020

Install Flask Python Framework

1 - About Flask Framework

Flask is an open-source Python web development framework. Its main goal is to be light, in order to keep the flexibility of Python programming, associated with a system of templates. It is distributed under the BSD license.
Flask was originally created by Armin Ronacher as an April Fool's . Ronacher's wish was to create a web framework contained in a single Python file but able to maintain high demand applications.

In 2018, Flask was voted "Most Popular Web Framework" by the Python Developers Survey. As of January 2020, it had over 49,000 stars on Github, more than any other Python web development framework.

2 - Features

Flask is based on two modules werkzeug and jinja to offer several of the following features:
  1.     Development server and debugger
  2. Simplifies writing unit tests
  3. Template engine for HTML  rendering
  4. Supports secure cookies (session) 
  5. Fully compatible with WSGI
  6. Based on Unicode
  7. Complete documentation
  8. Easy deployment on multiple hosts
  9. Adding functionalities via extensions

3 - Install Flask Framework

Install Flask Flask Framework can be installed easily and quickly by using the pip command: Flask:
pip install Flask

4 - First program Hello World with Flask

The basic program for using Flask is:
from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return "Hello world !"

if __name__ == "__main__":
    app.run()
After execution you will see this message:
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Then by typing the the url : http://127.0.0.1:5000/  in your browser you will see the "Hello World !" message:




Younes Derfoufi
my-courses.net

No comments:

Post a Comment

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (1) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (168) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (8) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (32) Python BeautifulSoup (1) Python For Data Science (2) Python-Books (6) Python-DVD-Training (1) Python-Exercises (138) Python-Framework (1) Python-IDE (1) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (1) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates