FastAPI Python Tutorial (Part 4) - Pydantic, Dependency Injection, and Background Tasks

preview_player
Показать описание
For more tutorials, subscribe to this channel and follow me:

Рекомендации по теме
Комментарии
Автор

Yooo one of my senior engineers recommend me to learn FastApi a while back now both him and I are going to start a new project with it instead of flask! Can't wait!

deivitsalazar
Автор

Thanks alot for Video 3 (databases). I have avoided using sqlalchemy and preferred Tortoise but your video explained everything clearly.

ejay
Автор

great video!
could you consider using a higher resolution than 720p ?

zepecat
Автор

This tute is so thorough, you should build a new exchange and call it Larry's Lair, or Larry with 8 a's, Prettyyyy Good, Fulltime Dependency Hot Beef Injections w/Larry.

johbontha
Автор

This series is VERY good. Thanks so much for making it AND for you GREAT pedagogy style.

thomives
Автор

THanks a lot for the clear explanations and making it understandable and esay. Congratulations!!!

davidrod
Автор

Hello Larry, Great stuff, was wondering why you do not pass the db (depends) parameter to the background function? (instead of creating a local session) - thank in advance

LaurentPrat
Автор

Fantastic tutorial. Very well explained and thought out.

christopherblevins
Автор

can you do tutorial of fast api with jwt. keep doing tutorial .

ericjhuneespa
Автор

Hi Larry loved the turtorial. It was very insightful. I have a couple of questions, what's the difference between passing session using getdb as dependency in the API route function and the one you created in local scope of function get_stock_data ? Ando you added stock object to your db with attribute as stock.symbol in your route then called the background tasks which again adds stock but with multiple attributes from yahooapi. So shouldn't there be two rows in db for each request one containing only stock.symbol and another containing other attributes along with stock.symbol.

sachinkun
Автор

Have you thought about doing a video series building a bot for wealthsimple trade?

aarono
Автор

hello Larry, once again, thank you very much for the video, I really like your videos a lot! I was wondering if you could help us on how to create a background task which would automatically grab all the needed information for a list of stocks, so we wouldn't need to add the stocks using the Add method, but instead we would have a background task to automatically make queries hourly for example and get all the stock informations directly on the homepage...many thanks!

ionut-alexandrubacalu
Автор

Hi Larry, thanks for your tute! How can i delete the stocks after filtering them?

jasoncysiu
Автор

Thanks Larry for the great video! I have a question, at 11:55, why the `db.add(stock)` in the fetch_stock_data function work, while sending the same symbol with POST request twice doesn't work due to the unique constraint: (sqlite3.IntegrityError) UNIQUE constraint failed: stocks.symbol. What is the difference?

analisay
Автор

Great work.can you pleeeease make video on authentication (sign-up, account activation(through email), account activation resend(if account activation token expires), account verification, login, change password, reset password, logout)

ahmadshaik
Автор

Great video! Just one note: Putting traditional blocking SqlAlchemy calls like 'add' and 'commit' in an async function is not a good idea.

andrasilaco
Автор

I cannot able to obtain the volume to display in the screen

peelajip