• This repository has been archived on 16/May/2021
  • Stars
    star
    104
  • Rank 323,557 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created about 4 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

FastAPI + Django experiment

django-fastapi-example

Another Django + FastAPI example can be found here: https://github.com/jordaneremieff/aeroplane/

This is an experiment to demonstrate one potential way of running FastAPI with Django. It won't be actively maintained. If you're interested in using FastAPI with Django, then you should just use this for inspiration.

Setup

pip install -r requirements.txt
cd django_fastapi/
./manage.py migrate
./manage.py createsuperuser 

Running

uvicorn project.asgi:app --debug

Routes

The Django app is available at /django (e.g. http://localhost:8000/django/admin/

The FastAPI app is is available at /api (e.g. http://localhost:8000/api/items/

More Repositories

1

mangum

AWS Lambda support for ASGI applications
Python
1,616
star
2

djantic

Pydantic model support for Django
Python
441
star
3

aeroplane

Example project using Django and FastAPI together.
Python
64
star
4

asgi-examples

A collection of example ASGI applications
Python
47
star
5

serverless-mangum-examples

Example ASGI applications and Serverless Framework configurations using Mangum
Python
29
star
6

grevillea

Google Cloud Functions support for ASGI
Python
26
star
7

guitarlette

🎸A songwriting tool for guitarists
HTML
25
star
8

headless-api

Python API service for headless Chromium
Python
19
star
9

asgi-video-streaming

Demonstration of video streaming using an ASGI application
Python
19
star
10

bonnette

ASGI adapter for Azure Functions
Python
13
star
11

mangum-cli

CLI tools for use with Mangum
Python
13
star
12

starlette-graphene-tortoise

An example Starlette app that uses Graphene and Tortoise ORM.
Python
11
star
13

typehint-serialization-experiment

An experiment into API serialization/de-serialization/validation
Python
11
star
14

starlette-svelte-example

Example project using Svelete with Starlette
HTML
9
star
15

mangum-examples

Example ASGI application deployments with AWS Lambda & API Gateway
HTML
9
star
16

django-sphinx-view-example

Python
6
star
17

mangum-chatroom

An example Starlette chatroom application and deployment for AWS Lambda & API Gateway.
Python
6
star
18

charlette

Django app that uses Starlette components with Channels
Python
5
star
19

asgi-s3

(WIP) Static file management tools and ASGI middleware support for Amazon S3
Python
4
star
20

starray

Implementing Pyray 3d rendering using ASGI
Python
3
star
21

asgitools

A collection of tools for developing ASGI applications. Supports both ASGI servers, uvicorn and daphne.
Python
2
star
22

envotate

Settings management using environment variables and type annotations
Python
2
star
23

mangum-template

A template for developing ASGI-compatible apps deployed to AWS Lambda.
Python
2
star
24

python-template

A cookiecutter template for generating Python packages.
Python
1
star
25

starlette-react

An example React app using a Starlette backend
JavaScript
1
star
26

django-rest-slack

Easily handle Slack API events and commands using Django
Python
1
star
27

asgi-tortoise-orm

ASGI middleware that implements Tortoise ORM support. WIP.
Python
1
star
28

aiopaint

WIP: Paint app using ASGI, WebSockets, and the HTML5 Canvas API, work in progress
HTML
1
star
29

starlette-typesystem-databases-example

Example app using Starlette, Typesystem, and Databases
Python
1
star
30

asyncio-http-parser

HTTP parser written using asyncio and Python 3.7, experimental / work in progress.
Python
1
star
31

apistar-react

JavaScript
1
star
32

innate

Small library for implementing command-line interfaces in Python
Python
1
star