Flask logo

Flask

A microframework for Python based on Werkzeug, Jinja 2 and good intentions
17.5K
15.1K
+ 1
414

What is Flask?

Flask is intended for getting started very quickly and was developed with best intentions in mind.
Flask is a tool in the Microframeworks (Backend) category of a tech stack.
Flask is an open source tool with GitHub stars and GitHub forks. Here’s a link to Flask's open source repository on GitHub

Who uses Flask?

Companies
1147 companies reportedly use Flask in their tech stacks, including Netflix, reddit, and CRED.

Developers
16118 developers on StackShare have stated that they use Flask.

Flask Integrations

Sentry, Strapi, Bugsnag, Airbrake, and KeyCDN are some of the popular tools that integrate with Flask. Here's a list of all 22 tools that integrate with Flask.
Pros of Flask
55
Easy to setup and get it going
51
Easy to develop and maintain applications
48
Easy to get started
22
Beautiful code
19
Rapid development
16
Powerful
15
Expressive
14
Flexibilty
14
Customizable
14
Simple to use
13
Love it
13
Awesome
13
Get started quickly
12
Speed
11
Easy to integrate
11
Perfect for small to large projects with superb docs.
10
For it flexibility
9
Productive
9
Flexibilty and easy to use
8
Not JS
8
Flask
7
User friendly
6
Secured
5
Unopinionated
3
Orm
2
Secure
1
Easy to use
1
Lightweight
1
Minimal
1
Python
1
Fon
1
Documentation
0
Open source
0
Well designed
Decisions about Flask

Here are some stack decisions, common use cases and reviews by companies and developers who chose Flask in their tech stack.

Needs advice
on
DjangoDjango
and
FlaskFlask

I'd like to make a web app using Python as a primary language and PostgreSQL for data management. Using those two I can do all the back-end and control functionality, but presenting it as a webpage is still a slight challenge.

I could do everything with pure HTML5, but I would like to try a framework to speed up the process and make it more maintainable. Django and Flask seem the two most popular frameworks for Python web development, but I'd like to hear your opinions on the matter (I'm also up to trying any other Python-based framework that is an 'industry standard if there is such a thing).

I intend to do styling myself, and being able to create dynamic and responsive websites is a must-have.

Bonus points for tips on what web server environment to use. (I've done Apache2 in the past but I think it may be outdated)

See more
Needs advice
on
FlaskFlask
and
Spring BootSpring Boot

I have to use one of these two frameworks for a test in one week. I have an extremely small amount of exposure to Spring Boot and no exposure to Flask. Which should I learn?

See more
Muhammad Waleed
The Community Management at TeStack · | 3 upvotes · 66.6K views
Needs advice
on
Django REST frameworkDjango REST framework
and
FlaskFlask

Hey! So I am planning to make an e-commerce website with React Native as my frontend technology stack and MongoDB as my database. I was wondering what will be the best REST framework to use for my backend that will simply serve the frontend. Is Django rest framework a good option or should I go with Flask? I am currently leaning towards flask as the development team is well versed in it. Please help!

See more
Nikola Tokic
Needs advice
on
FlaskFlaskconnexionconnexion
and
QuartQuart

I'm considering moving from Flask to Quart, does anyone have some experience with this migration?

I expect possible problems with connexion which we use as OpenAPI specification.

Would be good if someone can point downsides of moving to the Quart framework so I can double-check if my plan is worth doing.

Other libs and tools used in the project: SQLAlchemy, alembic, PostgreSQL, Datadog

cons for now:

  • Refactoring uncertainty (not sure how big of a task is it)
  • Connexion might not work with Quart (moving to another library)
  • ...
See more
Arun Nambiar
Senior Systems Engineer at Infosys · | 2 upvotes · 6.8K views
Needs advice
on
GunicornGunicornwaitresswaitress
and
uWSGIuWSGI

I want to choose one of the WSGI servers to be used along with Flask. Later on, I will be dockerizing the app. Which one would be the best one out of these?

See more
Needs advice
on
MongoDBMongoDBNode.jsNode.js
and
ReactReact

Hello,

I will be programming my project in the coming months. I would need advice on the technology I will use.

I focus mainly on mobile apps, so it's clear there that it will be a native app written in Kotlin.

I will also need a backend (database, API). In the database, I will need to store words and their translations along with users and some statistics to start with.

I don't know which database to choose, whether NoSQL or SQL. Maybe NoSQL would suffice for some words and key-value data.

I would like to connect the web and a chrome extension to that backend. I assume that chrome extensions are made in JavaScript and I would use either Vue.js, AngularJS, or React on the web. The web would be quite simple, some flashcards, statistics, and so on ... I don't know which framework would be ideal, I've never done it, I'll be basically learning it. Ideally, also where you need as little CSS as possible.

With that backend, I have a dilemma as to which framework to use. Basically, it will be such a new for me, I just played with Flask a little bit, but It doesn't matter. Basically, everything runs on JS except the Android app. So is it advantageous to choose Node.js on the backend? I have no experience with this, is it an advantage when everything runs in almost one language? I also thought about Flask / Django, but I also quite like Node.js since it's in JS. But I'm open to all the possibilities of .NET, Spring .... What would be your choice?

To summarize: Android App - Native app in Kotlin Chrome Extension - JavaScript (I don't know if it can be done in anything else) Web - Vue, Angular or React and that's JavaScript Database - SQL / NoSQL? - I don't know which is more suitable, or some specific types Backend - the dilemma of what language and framework to use

I'll write everything myself, it's a project for school, but I want to move it to a higher level and release it. If it doesn't work out, at least I'll learn something. Thank you for the answers.

See more

Blog Posts

Flask Alternatives & Comparisons

What are some alternatives to Flask?
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Tornado
By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
ExpressJS
Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
Node.js
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
See all alternatives

Flask's Followers
15106 developers follow Flask to keep up with related blogs and decisions.