- Видео 8
- Просмотров 58 480
Evgeny Maksimov
Добавлен 8 дек 2013
Hi, thanks for checking out my channel!
My name is Evgeny and I'm a full stack developer currently living in Lisbon, passionate about programming and sharing knowledge.
The more feedback I get the more motivated I'm to make new videos, so if you liked my content be sure to subscribe and leave a comment!
My name is Evgeny and I'm a full stack developer currently living in Lisbon, passionate about programming and sharing knowledge.
The more feedback I get the more motivated I'm to make new videos, so if you liked my content be sure to subscribe and leave a comment!
Simple Web Optimization Technique for Top Google Results
In this video I'll show you the best ways to optimize media on your website to make it fast, great looking and rank better for SEO.
👍 If you enjoyed this content, give this video a like
Product websites in the video aren't affiliated with me and are for demo purposes.
0:00 intro
2:23 examples
4:20 biggest problem
7:28 how to estimate best image size
11:09 formats and compression tips
16:15 basic implementation
20:34 optimize for mobile
👍 If you enjoyed this content, give this video a like
Product websites in the video aren't affiliated with me and are for demo purposes.
0:00 intro
2:23 examples
4:20 biggest problem
7:28 how to estimate best image size
11:09 formats and compression tips
16:15 basic implementation
20:34 optimize for mobile
Просмотров: 889
Видео
Async in practice: how to achieve concurrency in FastAPI (and what to avoid doing!)
Просмотров 18 тыс.Год назад
Concurrency can be confusing. Let's dive into how to use async functions and achieve concurrency with FastAPI git repo: github.com/creepykedi/FastApi-Async-Practices 00:00 Intro 1:45 Practical overview 11:49 Why things behave not like you might expect 25:08 Best practices 36:58 Quick recap #FastAPI #asyncio #async #python #concurrency #tips
How to host your python backend API on a VPS (for cheap!)
Просмотров 3,8 тыс.2 года назад
Full guide on how to deploy your python API on a VPS with nginx & gunicorn web server. reference project & server configurations: github.com/creepykedi/Fastapi-jewels-tutorial vps provider: zomro.com/?from=346907 0:00 hosting options & advantages 04:44 getting a VPS 08:20 deploying with nginx on a linux server 16:35 setting up custom domain
Build a real-time Auction app. Part 2 - Frontend with Svelte
Просмотров 1,6 тыс.2 года назад
Finishing our websockets project with Svelte on frontend. This one is much longer than first one, because I'm trying to show off svelte a little bit. backend repo : github.com/creepykedi/Auction-tutorial-backend this project repo: github.com/creepykedi/Auction-tutorial-frontend 0:00 Installation 3:58 Svelte basics 21:55 coding websockets 25:10 svelte store 34:30 testing prototype 35:25 styling ...
Python Websockets tutorial: build a real-time Auction app. Part 1 - Backend
Просмотров 2,4 тыс.2 года назад
Let's build an Auction app using Websockets and Python. I'm using FastAPI & SQLModel for this project, but you can use Flask or what you're more comfortable with - for the most part websockets interaction remains largely the same! github.com/creepykedi/Auction-tutorial-backend 0:00 intro 0:22 finished project 1:00 start 8:35 testing #websockets #python #tutorial
STOP writing LONG filter lookups with your ORM. Try this instead
Просмотров 1,8 тыс.2 года назад
How not to violate DRY when you have dozens of similiar comparison filter queiries in your python backend app? Let's find out! repo: github.com/creepykedi/fastLookups Intro 0:00 Problem 3:10 Developing solution 4:50 Testing solution 19:20 Possible improvements 22:20 #FastAPI #Flask #SQLAlchemy #SQLModel #Python #ORM #Tutorial #efficient #SQL #DRY #lookups #OOP #tips #tricks
FastAPI with SQLModel, Alembic and Authentication. Full Course
Просмотров 29 тыс.2 года назад
Build a complete backend FastAPI application with SQLModel and Alembic. Github repository for this tutorial: github.com/creepykedi/Fastapi-jewels-tutorial Download sqlite browser: sqlitebrowser.org/dl/ Chapters: 0:00 Intro 2:40 Technologies used - theoretical part 12:07 What we're building 14:25 Finished project overview 16:15 Start 20:20 SQLModel 1:30:00 FastAPI writing CRUD 2:12:03 Migrations...
Great video. Thank you very much!
can you send a book you are referring to in your video?
Excelent
Отличное видео
Zoom the screen abit.
Great video, well done!
finally amazing explanation with good examples I don't know how how come that you don't have a milion of views
Thank you for this, helped me deploy my fastapi project online
Awesome
hello, I am looking for a developer to help implement a closed system digital collectible auction and marketplace. Is this something you could help with?
hello! shoot me an email at pumpkinthestrange@gmail.com
Good job comrade
I just wanted to press like again and again
Great job, thank you 👍
Hi bro, can you make a video of using chunk method
Лучшее видео по FastAPI что я смотрел за последнее время. Кратко и в то же время очень ёмко. Видно что автор глубоко разбирается в вопросе. Респект!
спасибо :)
14:50 What about GIL, doesn't it forbid to create multiple threads within 1 process?
It doesn't forbid to create, it just doesn't let more than one kernel thread take execution at the same time. However, for I/O calls GIL is getting realeased, so it doesn't impact it in our case
This video should have more views 👍
Holy shit, you just level up my Python skill
Very interesting
You desire a million views - that is a great in-depth tutorial!
Did you try to use psycopg3 since it provides async?
« writing async in front of every function and hoping for the best » yup that’s me 😂
That is really how it looks like when you do not check the implementation under the hood That was me too btw:)
I have a question regarding sqlmodel and pydantic. I created a class based on sqlmodel, and now I want to use that for data validation using pydantic @validator (decorotor) and perform an ORM operation. So how do I do it?
easy, in the model create a method, it should be something like @validator('your_field_name', pre=True) def convert_to_number(cls, v): return float(v) or raise something here if v isn't what's needed. then as you create an instance of model, validation on set field automatically applies
text is FAR too small. 99% wasted screen space, 1% tiny tiny tiny text. Why do youtubers still not get it?
I'm about as much of "youtuber" as you are.That was literally my first video ever made, sorry I wasn't born a video producer.
Is it just me or our good tutor looks like Scarlett Johansson's brother 🤔. This is A really good tutorial by the way. Gives good context for how to write Async code.
Great video, thanks!
@evgenymaksimov 26:09 Of course, we cannot see that it has made a big difference with just a request. If you send thousands of IO-heavy requests, each request will be dedicated to a different thread, and as you said before, the application will lose performance after a while because the threads are memory hungry. If we use coroutines instead, I can say that they are lighter threads, the application will run more efficiently. Actually this may also be an answer to when to use thread and when to use async.
great point! thanks
Good work ❤
Hi Evgeny, This is really great as I'm trying to implement exactly this in a FastAPI REST API I'm building right now! Is there a repository where I can see the final code somewhere? Also, couple other questions: Is it possible to do case-insensitive searching? Does this work for things like searching datetimes? Again, thanks for this, it's great! Doug
hi, thanks for the comment! I added repo link to the description. Yes, you can do case insensitive using sqlachemy's 'ilike', I actually made that change to code so you'll be able to do case insensitive search. About datetime, as far as i remember, it has feature of comparison in basic class, so you should be able to. But if it doesn't work, you can create some extra functions to handle it and add it to the class
@@evgenymaksimov Thanks for the reply and the link to the repo. I'm going to work on incorporating what you have into my code, and I'll let you know how it works out! Again, thanks! Doug🙂
@@evgenymaksimov Hi Evgeny, I made some changes to the code so numeric and boolean data would be compared directly rather than as string compares. I also added code so the 'q=' in the query_params when using the OpenAPI interface provided by FastAPI would be removed, but normal query_strings from things like PostMan would also work. I can't push the changes as a branch to your repository. Let me know if you want to add me as a collaborator, so I can send you the changes in some other way. Doug
Мог бы и на русском говорить
I've seen the source code and Im very excited now.
An amazing tour from amazing lad, well done! However, how can I make an atomic transaction with SQLModel orm? If it is possible please make more videos about SqlModel orm.
I write raw sql with f strings, lol
Жека го на русском)
подписался) Жека а че не на русском?)
Great and intuitive video. How can I reach you?
🤯
Thanks for the tutorial. I have a question, is there any way to implement server sent events in FastAPI?
take a look at pip package sse-starlette, it adds this functionality and you can use it with fastapi!
@@evgenymaksimov thanks. So basically FastAPI still uses http 1.1 on top of which sse-starlette implements SSE, am I correct?
@@akshaysarbhukan6701 not quite. FastAPI itself doesn't have hard dependecy on webserver. Regularly most use uvicorn as webserver, which uses http 1.1, but you can install hypercorn instead which supports 2.0 and it will work just fine
@@evgenymaksimov yeah, got it. Thanks again for the help.
53:13 i was running the program in vs-code and for me a weired eroor came like ModuleNotFoundError: No module named 'main', took me a long time to figure out what is going wrong. looks like its part of relative imports and found a solution like when we run the code for gem_repository we should run it as a module like , python -m repos.gem_repository while we are in the main parent folder
as i was following the tutorial along i saw you too had the issue of circular import, and how you have solved the same
Thx for best material. It will be interesting if you do video about ASGI and WSGI web servers.
Thank you! I’m considering it
hi, Evgeny! great job! crystal clear explanation! big thanks!
Excellent tutorial👌 and very accurate, precise chart. These are some much needed topics to be taken care of. My small request will be to share the code and chart in a repo, it will be much helpfull.
Thank you for the kind words! Noted, I added git with chart to the video description :)
Thank you for the tutorial, Evgeny. Could you explain how to write tests with fastapi, sqlmodel and postgres in the next tutorials? Especially I want to know how to manage and isolate test database from project database.
Good job. But what about swagger documentation?
Спасибо! Познавательно!
hello! amazing tutorial, clears a lot of doubts. please do more... How could be implemented a token blacklist/invalidation strategy, if it worth to do that? And... token refresh too would also be awesome to see how it could beimplemented. huge thanks
The aspect is too small
Круто, спасибо!
This was great! Enjoyed it!
thank you!