How to build a REST API with Python | Deploy to Google Cloud

preview_player
Показать описание
In this Python REST API - Flask - Sentiment Analysis - Google Cloud Platform tutorial you will learn :
🟢 how to use NLTK and 'Vader' to code sentiment analysis
🟢 how to build a Python Flask REST API
🟢 how to deploy to Google Cloud Run
We will start by building the sentiment analysis code, and take input from a GET request.
At the end of this video you will have a fully functioning REST API with python and flask and access it as a resource from the world wide web.

📍 Check out these amazing FastAPI courses 📍

___________________________________________________________________
-- chapters
0:00 Intro
3:20 Sentiment Analysis Repo - initial code demo
14:15 testing refactored code
18:12 Google Cloud Platform - Cloud Run
20:11 deploying from vscode
28:52 testing the new deployment via Service URL
31:44 testing the API endpoint via a Python script with requests
__________________________________________________________________

Please consider buying Dr Pi a coffee (or Tea)

Google Cloud Deploy to Cloud Run :
(Deploying to Cloud Run from source)

_________________________________________________________________________________

Note: this is NOT a CRUD API - watch to find out the important difference.
🟥 "A REST API should not be designed around exposing the domain/data model as CRUD-over-http" (Stackoverflow)

I also show how to refcator code to use Flask RESTful : Flask-RESTful is an extension for Flask that adds support for quickly building REST APIs.

Visit redandgreen blog for more Tutorials
=========================================

Subscribe to the YouTube Channel
=================================

Follow on Twitter - to get notified of new videos
=================================================

🟢 Become a patron 👍👍👍

Code available on GitHub - Includes the all important Dockerfile ☑️

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! 👍

◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

Flask API
Full Project
Sentiment Analysis
Python REST API code
Python Flask Project Full Code
Deploy REST API to Google Cloud
VADER Sentiment Analyzer
NLTK
#Flask #RESTAPITutorial #python
Рекомендации по теме
Комментарии
Автор

These kind of short video connecting different tools are incredibly useful. Amazing work! Do more.

classictablet
Автор

This is a really good tutorial full of valuable information, thanks Dr Pi. New subscriber.

rodrigo
Автор

Thank you, very helpful! And I like your glasses

Lepredooo