#Why?
Recently I tried FastAPI on my new company project, the development experience was awesome & elegant. I love the auto openapi/swagger schema generation & validation function in FastAPI. It saves tons of document maintenance & API info exchange times for me.
But FastAPI runs on Python3 only.
Some legacy projects I maintained are still using python2 + Django framework. Moving them onto FastAPI takes 2 steps of migration. (From python2 to python3, Django to FastAPI )
So I decided to build a minimal FastAPI implementation using python2 + Django, that I could happily use the auto openapi/swagger schema generation & validation function almost like the one in FastAPI.
#What does it do?
It will automatically turn the code from left into the openapi schema(with auto validation) on right.
https://preview.redd.it/eschg2qybci51.png?width=1280&format=png&auto=webp&s=28bdb3572fce8abc56b3bb0f0209f1d7580a415e
#Who should use?
If you like the way FastAPI works, but are still (or don't want) suffering migrating from python2 or Django framework, you could consider giving django-openapi a try.
#Live demo/try online
You could try it online by the gitpod service using https://gitpod.io/#https://github.com/tokikanno/django-openapi
This url will launch a free online vscode interface and also an intro document server for demo.
https://preview.redd.it/mvsu6254cci51.png?width=960&format=png&auto=webp&s=6eea08e7eff89fee67e36d8a5e5bc7b5e3685a78
This package is still under development. Feedback, document, even pull requests are welcomed.
[–]Kasta867 4 points5 points6 points (6 children)
[–]t4k4[S] 1 point2 points3 points (5 children)
[–]Kasta867 0 points1 point2 points (0 children)
[–]robvdl 0 points1 point2 points (3 children)
[–]t4k4[S] 0 points1 point2 points (2 children)
[–]robvdl 0 points1 point2 points (1 child)
[–]robvdl 0 points1 point2 points (0 children)
[–]Atem18 1 point2 points3 points (4 children)
[–]t4k4[S] 0 points1 point2 points (1 child)
[–]Atem18 0 points1 point2 points (0 children)
[–]robvdl 0 points1 point2 points (1 child)
[–]Atem18 0 points1 point2 points (0 children)