Create A Flask Web App And Connect SQL Database - Python Tutorial

Adam Getbags
Adam Getbags
2.3 هزار بار بازدید - 6 ماه پیش - Let's dive into how to
Let's dive into how to create a Flask web app and connect your SQL database. We're also going to take a look at how to do some basic financial time series analysis and add images to our Flask template.

0:19 intro
0:45 create virtual environment
2:00 open the docs
2:32 create basic flask app
2:46 pip install -r requirements.txt
3:36 import modules
4:00 working with flask-sqlalchemy
5:16 create polygon API client
5:32 create sql alchemy model class
6:52 flask and marshmallow
7:58 create SQL database
8:44 adding data to the database
9:47 financial time series analysis
11:01 adding image urls to the database
11:18 adding rows and committing changes to db
14:52 writing to the database
16:07 reading from the database
17:36 render templates in flask
18:52 THEMATIC BREAK
19:14 how the table html works
20:27 adding more data

Here's all the code from the video.
https://github.com/AdamGetbags/volati...

If you don't have a Polygon API subscription, you can use time.sleep() to reduce the rate of your requests OR swap the data out from another source like yfinance, etc.

GET 10% OFF YOUR 1ST YEAR SUBSCRIPTION FOR THE POLYGON API
USE CODE "GETBAGS10" WHEN SIGNING UP FOR YOUR SUBSCRIPTION!

https://polygon.io/?utm_source=affili...

- - -

Here's Traversy Media's Flask API video
REST API With Flask & SQL Alchemy

Here's an intro to Python Marshmallow from Pretty Printed
Intro to Marshmallow: A Python Object...

- - -

Subscribe to join our community and receive value on all things finance and technology!

If you love the content, buy me a coffee!
https://www.buymeacoffee.com/adamgetbags

Keep up with me!
Instagram: damgetbags
Twitter: damgetbags

- - -

Need some ideas for your project portfolio?

Check out how to get historical option price data in Python from the Polygon API.

Get Historical Option Price Data In P...

Here's how to quickly get crypto data in Python from the CoinGecko API

How To Get Crypto Data In Python From...

Here's how to create a SQL database from a Pandas DataFrame in Python

Create SQL Database From Pandas DataF...

- - -

DISCLAIMER: The Information on Adam Getbags on Youtube.com is provided for education and informational purposes only, without any express or implied warranty of any kind, including warranties of accuracy, completeness, or fitness for any particular purpose. The Information contained in or provided from or through Adam Getbags on Youtube.com is not intended to be and does not constitute financial advice, investment recommendations, investment advice, trading advice, or any other advice. The Information on Adam Getbags on Youtube.com is general in nature and is not specific to you the User or anyone else. You should not make any decision, financial, investment, trading, or otherwise, based on any of The Information presented on Adam Getbags on Youtube.com without undertaking independent due diligence and consultation with a professional broker or financial advisory.
6 ماه پیش در تاریخ 1402/10/11 منتشر شده است.
2,363 بـار بازدید شده
... بیشتر