Django REST framework vs Flask vs Rails API

Django REST framework
Django REST framework

692
115
255
Flask
Flask

3.6K
664
1.1K
Rails API
Rails API

50
47
16

What is Django REST framework?

Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs.

What is Flask?

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

What is Rails API?

Rails::API is a subset of a normal Rails application, created for applications that don't require all functionality that a complete Rails application provides. It is a bit more lightweight, and consequently a bit faster than a normal Rails application. The main example for its usage is in API applications only, where you usually don't need the entire Rails middleware stack nor template generation.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose Django REST framework?
Why do developers choose Flask?
Why do developers choose Rails API?
What are the cons of using Django REST framework?
What are the cons of using Flask?
What are the cons of using Rails API?
    Be the first to leave a con
    What companies use Django REST framework?
    What companies use Flask?
    What companies use Rails API?
    What are some alternatives to Django REST framework, Flask, and Rails API?
    Django
    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
    Tastypie
    Tastypie is a webservice API framework for Django. It provides a convenient, yet powerful and highly customizable abstraction for creating REST-style interfaces.
    Swagger UI
    Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation and sandbox from a Swagger-compliant API
    Graphene
    Graphene is a Python library for building GraphQL schemas/types fast and easily.
    Spring Boot
    Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
    See all alternatives
    What tools integrate with Django REST framework?
    What tools integrate with Flask?
    What tools integrate with Rails API?
    Decisions about Django REST framework, Flask, and Rails API
    No stack decisions found
    Interest over time
    Reviews of Django REST framework, Flask, and Rails API
    Avatar of mjhea0
    Software Engineer at TestDriven Labs
    Review ofFlaskFlask

    Flask is a light, yet powerful Python web framework perfect for quickly building smaller web applications. It's a "micro-framework" that's easy to learn and simple to use, so it's perfect for those new to web development as well as those looking to rapidly develop a web application.

    How developers use Django REST framework, Flask, and Rails API
    Avatar of Jack Littleton
    Jack Littleton uses FlaskFlask

    I use Flask for times when I need to create a REST API that interfaces with other Python code, or there is no specific reason why I'd want to use Node.JS. I prefer Flask because of its small learning curve, allowing me to get started coding as quickly as possible

    Avatar of Cloudify
    Cloudify uses FlaskFlask

    This lightweight web framework enables quick REST API development while enabling easy clustering, and the usage of multiple worker processes required to scale the REST API service to meet high volume requirements.

    Avatar of Yaakov Gesher
    Yaakov Gesher uses Django REST frameworkDjango REST framework

    Django REST delivered all the content to the BI, making calls to the Postgres DB, aggregating numeric data, and automatically associating data models at the time of row creation.

    Avatar of Alec Cunningham
    Alec Cunningham uses Django REST frameworkDjango REST framework

    Instead of using Django for both back and frontend, I use DRF to layout an API that ReactJs can pull data from. Easy to setup, well documented, and works seamlessly with React.

    Avatar of Seungkwon Park
    Seungkwon Park uses Django REST frameworkDjango REST framework

    django에서 api를 만드는데 최고의 framework라고 생각합니다. 아직은 tutorial 수준의 class base view, function base view 수준으로 사용합니다.

    하지만 현재 진행중인 프로젝트의 심화로 REST framework를 심도있게 다룰 예정입니다.

    Avatar of Sail Tactics
    Sail Tactics uses FlaskFlask

    Service to query NOAA weather forecasts data and service to build tidal current forecast maps using AWS EC2 and Geoserver

    Avatar of OnlineCity
    OnlineCity uses FlaskFlask

    Flask drives our APIs, both the Website APIs and the majority of the REST Messaging APIs

    Avatar of papaver
    papaver uses FlaskFlask

    used flask for a few personal projects. enjoyed its simplicity and ease of use.

    Avatar of Eray Erdin
    Eray Erdin uses Django REST frameworkDjango REST framework

    Project is mainly a RESTful service project, so DRF had a a huge role in it.

    Avatar of Blair Gemmer
    Blair Gemmer uses Django REST frameworkDjango REST framework

    Really great framework for building RESTful APIs. Lots of plugins for it!

    How much does Django REST framework cost?
    How much does Flask cost?
    How much does Rails API cost?
    Pricing unavailable
    Pricing unavailable
    Pricing unavailable
    News about Django REST framework
    More news
    News about Rails API
    More news