Need advice about which tool to choose?Ask the StackShare community!

Flask

12.1K
9.8K
+ 1
1.4K
Lumen

348
492
+ 1
151
Add tool

Flask vs Lumen: What are the differences?

What is Flask? a microframework for Python based on Werkzeug, Jinja 2 and good intentions. Flask is intended for getting started very quickly and was developed with best intentions in mind.

What is Lumen? The stunningly fast PHP micro-framework by Laravel. Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

Flask and Lumen can be categorized as "Microframeworks (Backend)" tools.

"Lightweight" is the top reason why over 261 developers like Flask, while over 16 developers mention "API" as the leading cause for choosing Lumen.

Flask and Lumen are both open source tools. It seems that Flask with 45.2K GitHub stars and 12.7K forks on GitHub has more adoption than Lumen with 6.31K GitHub stars and 836 GitHub forks.

Netflix, reddit, and Lyft are some of the popular companies that use Flask, whereas Lumen is used by Geocodio, Next, and Index.co. Flask has a broader approval, being mentioned in 511 company stacks & 531 developers stacks; compared to Lumen, which is listed in 34 company stacks and 25 developer stacks.

Decisions about Flask and Lumen

We decided to expose our small machine learning (ML) pipeline as a REST API. This allows us to nicely separate concerns from the rest of the codebase. There are two very popular choices in Python for building APIs: Flask and FastAPI. We have experience with both, but find that FastAPIs use of static type hints and validation with Pydantic allow us to build better APIs faster.

See more
Pros of Flask
Pros of Lumen
  • 297
    Lightweight
  • 257
    Python
  • 207
    Minimal
  • 140
    Open source
  • 95
    Documentation
  • 62
    Easy to use
  • 51
    Easy to setup and get it going
  • 51
    Well designed
  • 45
    Easy to develop and maintain applications
  • 43
    Easy to get started
  • 15
    Beautiful code
  • 14
    Rapid development
  • 12
    Powerful
  • 12
    Expressive
  • 11
    Awesome
  • 10
    Love it
  • 10
    Speed
  • 9
    Simple to use
  • 9
    Flexibilty
  • 8
    Get started quickly
  • 8
    For it flexibility
  • 8
    Perfect for small to large projects with superb docs.
  • 7
    Flexibilty and easy to use
  • 7
    Easy to integrate
  • 7
    Productive
  • 6
    Customizable
  • 6
    Not JS
  • 5
    Secured
  • 5
    User friendly
  • 5
    Flask
  • 3
    Unopinionated
  • 32
    API
  • 25
    Microframework
  • 19
    MVC
  • 16
    PHP
  • 12
    Open source
  • 11
    Eloquent
  • 10
    Restful & fast framework
  • 7
    Illuminate support
  • 7
    Composer
  • 4
    Brother of laravel and fast
  • 4
    Easy to learn
  • 4
    Fast

Sign up to add or upvote prosMake informed product decisions

Cons of Flask
Cons of Lumen
  • 10
    Not JS
  • 7
    Context
  • 3
    Not fast
  • 2
    Not fast
  • 1
    Not fast with MongoDB
  • 1
    PHP

Sign up to add or upvote consMake informed product decisions

What is Flask?

Flask is intended for getting started very quickly and was developed with best intentions in mind.

What is Lumen?

Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Flask?
What companies use Lumen?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Flask?
What tools integrate with Lumen?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Flask and Lumen?
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
Interest over time