Refactor Flask Python Code to FastAPI

Published: 06 December 2021
on channel: Python 360
702
16

This is a follow up to    • How to build a REST API with Python |...   where we created an API for sentiment analysis with NLTK (VADER). In this video I refactor the code to work with FastAPI and Pydantic.
This allows for easier error checks and faster code. At the end I test with requests and POST request to check some example sentences.

Watch the Python API playlist :    • Python FastAPI / NLP (NLTK)  

📍 Check out these amazing FastAPI courses 📍
🔗 https://testdriven.io/courses/tdd-fas...
🔗 https://testdriven.io/courses/scalabl...
🔗 https://testdriven.io/courses/fastapi...

Visit redandgreen blog for more Tutorials
=========================================
🌏 http://redandgreen.co.uk/about/blog/

Subscribe to the YouTube Channel
=================================
🌏    / drpicode  

Follow on Twitter - to get notified of new videos
=================================================
🌏   / rngweb  

👍 Become a patron 👍
🌏   / drpi  

Code available on GitHub ☑️
🌏 https://github.com/RGGH/Sentiment-Ana...

Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi

Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍

🌏 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

#fastapi #sentimentanalysis #python


On this page of the site you can watch the video online Refactor Flask Python Code to FastAPI with a duration of hours minute second in good quality, which was uploaded by the user Python 360 06 December 2021, share the link with friends and acquaintances, this video has already been watched 702 times on youtube and it was liked by 16 viewers. Enjoy your viewing!