Posts

Installation

  Python Version We recommend using the latest version of Python. Flask supports Python 3.9 and newer. Dependencies These distributions will be installed automatically when installing Flask. Werkzeug  implements WSGI, the standard Python interface between applications and servers. Jinja  is a template language that renders the pages your application serves. MarkupSafe  comes with Jinja. It escapes untrusted input when rendering templates to avoid injection attacks. ItsDangerous  securely signs data to ensure its integrity. This is used to protect Flask’s session cookie. Click  is a framework for writing command line applications. It provides the  flask  command and allows adding custom management commands. Blinker  provides support for  Signals . Optional dependencies These distributions will not be installed automatically. Flask will detect and use them if you install them. python-dotenv  enables support for  Environment Varia...

Flask (web framework)

  Flask   is a micro   web framework   written in   Python . It is classified as a   microframework   because it does not require particular tools or libraries. [ 2 ]   It has no   database   abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. However, Flask supports extensions that can add application features as if they were implemented in Flask itself. Extensions exist for   object-relational mappers , form validation, upload handling, various open authentication technologies and several common framework related tools. [ 3 ] Applications that use the Flask framework include  Pinterest  and  LinkedIn . [ 4 ] [ 5 ] History [ edit ] Flask was created by  Armin Ronacher  of Pocoo, an international group of Python enthusiasts formed in 2004. [ 6 ]  According to Ronacher, the idea was originally an  April Fool's  joke that...