Inspiration

This Project was inspired by Django-Rest-Framework. It was too heavy and bulky for applications that required requests in a fast manner. To fix this issue, I have innovated a method which uses the power of the asynchronous framework FastAPI Click here which speeds up the process of creating and generating a REST API

What it does

It essentially simplifies the process of creating a REST API by allowing the developers to process the data with Django's ORM without complications and serialization. It is essentially faster than DRF, and it can be used to add security features like endpoint restriction i.e Certain Endpoint will not be visible to the user (if they try to maliciously obtain data) and internally will be accessed via the views. Essentially this integrates the best of both worlds and makes it a better environment for every developer using the same. I've written about this more at [link]https://dev.to/abhijithganesh/what-does-it-take-to-build-an-unconventional-rest-api-in-python-3oog

How we built it

I integrated this via WSGI according to the PEP 3333 proposal standards and effectively established a web-server linking the two frameworks.

Challenges we ran into

I've tried my best to integrate it via ASGI(asynchronous) but I was unable to. For the data , I've used an extremely minimalist sample because this project was to exhibit how this can be done instead of the load and stress it can take. We couldn't implement a lot of back-end features because of lack of time. We had to minimalistic UI for this event. Apart from this no request to API routing has been implemented because of time constraints.

Accomplishments that we're proud of

This project is the first of its kind, No major apps have integrated FastAPI though there are very few tutorials related to this process.

What we learned

I learnt how to work with WSGI.py and ASGI.py which usually doesn't happen when one uses Django.

What's next for FastAPI Integration

  1. I'll be doing a similar project for GraphQL
  2. I'll be expanding our database size
  3. I'll try containerizing this and implement a load-balancer and then stress test the integration and compare it with DRF(Django Rest Framework)
    1. I'll implement a new UI made with React and that shall fully utilize the FastAPI for processing

Built With

Share this project:

Updates