Get Advice Icon

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

Django REST framework
Django REST framework

818
570
+ 1
261
Grape
Grape

70
55
+ 1
10
Add tool

Django REST framework vs Grape: What are the differences?

Developers describe Django REST framework as "Web APIs for Django". Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs. On the other hand, Grape is detailed as "An opinionated micro-framework for creating REST-like APIs in Ruby". Grape is a REST-like API micro-framework for Ruby. It's designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs. It has built-in support for common conventions, including multiple formats, subdomain/prefix restriction, content negotiation, versioning and much more.

Django REST framework and Grape can be primarily classified as "Microframeworks (Backend)" tools.

"Browsable api" is the top reason why over 54 developers like Django REST framework, while over 3 developers mention "Well documented" as the leading cause for choosing Grape.

Django REST framework and Grape are both open source tools. Django REST framework with 14.6K GitHub stars and 4.33K forks on GitHub appears to be more popular than Grape with 8.87K GitHub stars and 1.09K GitHub forks.

According to the StackShare community, Django REST framework has a broader approval, being mentioned in 159 company stacks & 79 developers stacks; compared to Grape, which is listed in 11 company stacks and 7 developer stacks.

What is Django REST framework?

It is a powerful and flexible toolkit that makes it easy to build Web APIs.

What is Grape?

Grape is a REST-like API micro-framework for Ruby. It's designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs. It has built-in support for common conventions, including multiple formats, subdomain/prefix restriction, content negotiation, versioning and much more.
Get Advice Icon

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

Why do developers choose Django REST framework?
Why do developers choose Grape?

Sign up to add, upvote and see more prosMake informed product decisions

Jobs that mention Django REST framework and Grape as a desired skillset
What companies use Django REST framework?
What companies use Grape?

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

What tools integrate with Django REST framework?
What tools integrate with Grape?

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

What are some alternatives to Django REST framework and Grape?
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Flask
Flask is intended for getting started very quickly and was developed with best intentions in mind.
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.
See all alternatives
Decisions about Django REST framework and Grape
Tim Abbott
Tim Abbott
Founder at Zulip ยท | 8 upvotes ยท 44.1K views
atZulipZulip
Django
Django
Django REST framework
Django REST framework

Zulip has been powered by Django since the very early days of its development with Django 1.4, back in 2012. As a reasonably mature web application with significant scale, we're at the stage in many companies' development where one starts to rip out more and more of the web framework to optimize things or just make them work the way we want. (E.g. while I was at Dropbox in early 2016, we discovered we only had about 600 lines of code left from the original Pylons framework that actually ran).

One of the things that has been really fantastic about Django is that we're still happily using it for the vast majority of code in the project, and every time Django comes out with a new release, I read the changelog and get excited about several improvements that actually make my life better. While Django has made some design decisions that I don't agree with (e.g. I'm not a fan of Django REST framework, and think it makes life more difficult), Django also makes it easy to do your own thing, which we've done to great effect (see the linked article for details on our has_request_variables framework).

Overall I think we've gotten a ton of value out of Python and Django and would recommend it to anyone starting a new full-featured web application project today.

See more
Interest over time
Reviews of Django REST framework and Grape
No reviews found
How developers use Django REST framework and Grape
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 Blair Gemmer
Blair Gemmer uses Django REST frameworkDjango REST framework

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

Avatar of Andrey Khitryy
Andrey Khitryy uses GrapeGrape

Fast integration. Best with Swagger and Rails.

Avatar of TOMIS
TOMIS uses Django REST frameworkDjango REST framework

For our backend REST API

How much does Django REST framework cost?
How much does Grape cost?
Pricing unavailable
Pricing unavailable
News about Django REST framework
More news
News about Grape
More news