Need advice about which tool to choose?Ask the StackShare community!
Android SDK vs Django REST framework: What are the differences?
Developers describe Android SDK as "An SDK that provides you the API libraries and developer tools necessary to build, test, and debug apps for Android". Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment. On the other hand, Django REST framework is detailed as "Web APIs for Django". Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs.
Android SDK can be classified as a tool in the "Frameworks (Full Stack)" category, while Django REST framework is grouped under "Microframeworks (Backend)".
"Android development" is the top reason why over 280 developers like Android SDK, while over 54 developers mention "Browsable api" as the leading cause for choosing Django REST framework.
Django REST framework is an open source tool with 14.5K GitHub stars and 4.29K GitHub forks. Here's a link to Django REST framework's open source repository on GitHub.
Instacart, Slack, and Lyft are some of the popular companies that use Android SDK, whereas Django REST framework is used by AX Semantics, Crowdkeep, and Shippo. Android SDK has a broader approval, being mentioned in 1071 company stacks & 878 developers stacks; compared to Django REST framework, which is listed in 159 company stacks and 77 developer stacks.
I have just started learning Python 3 weeks ago. I want to create a REST API using python. The API will be used to save form data in an Oracle database. The front end is using AngularJS 8 with Angular Material. In python, there are so many frameworks to develop REST APIs.
I am looking for some suggestions which REST framework to choose?
Here are some features I am looking for:
Easy integration and unit testing, like in Angular. We just want to run a command.
Code packaging, like in java maven project we can build and package. I am looking for something which I can push in as an artifact and deploy whole code as a package.
Support for swagger/ OpenAPI
Support for JSON Web Token
Support for test case coverage report
Framework can have features included or can be available by extension. Also, you can suggest a framework other than the ones I have mentioned.
For starters flask provides a beautiful and easy way to create REST APIs. Also its supported by excellent beginner docs as well as a very active community. Another good thing with Flask is its widely available list of plugins which allow you to build as you go. Its also good in performance and can scale to a quite decent level. However, if you are sure your project is going to be fairly big, it would be better to start with Django as it provides a lot of features out of the box and is extremely stable in performance. Both these frameworks have support for Swagger, JWT, Coverage Report although you have to install plugins for them. Deploying both of these are fairly simple and there is huge documentation available. Django has one of the best documentations I have come across. I hope I was able to answer your queries.
We actually initially wrote a lot of networking code in Kotlin but the complexities involved prompted us to try and compile NodeJS for Android and port over all the networking logic to Node and communicate with node over the Java Native Interface.
This turned out to be a great decision considering our battery usage fell by 40% and rate of development increased by a factor of 2.
Pros of Android SDK
- Android development289
- Necessary for android155
- Android studio128
- Mobile framework86
- Backed by google82
- Platform-tools27
- Eclipse + adt plugin21
- Powerful, simple, one stop environment5
- Free3
- Больно3
Pros of Django REST framework
- Easy to use66
- Browsable api65
- Great documentation53
- Customizable50
- Fast development42
- Easy to use, customizable, pluggable, serializer9
- Python8
- Django ORM7
- FastSerialize5
- Less code3
- Easy implementation2
Sign up to add or upvote prosMake informed product decisions
Cons of Android SDK
Cons of Django REST framework
- Bad documentation2
- Reimplements Django functionality2
- No support for URL Namespaces1
- Bad CSRF handling0