How to paginate with FastAPI

  Рет қаралды 5,311

Jr. Developer

Jr. Developer

Күн бұрын

Пікірлер: 11
@jr.developer
@jr.developer Жыл бұрын
Here's the link to the source code: github.com/jrdeveloper124/pagination
@uriyyo
@uriyyo Жыл бұрын
Hi, I am an author of fastapi-pagination library and I love your tutorial. Keep going!
@jr.developer
@jr.developer Жыл бұрын
Thank you so much for commenting and creating such a great library 🙂
@pleabargain
@pleabargain Жыл бұрын
Worked through the whole tutorial. Thank you. Now, to the REACT part. Will you consider doing a follow up video on how to view the content of the API and allow the user to save and or edit the API content? e.g. Store the 'likes' or 'comments' on an API call.
@jr.developer
@jr.developer Жыл бұрын
That's a great suggestion!!. I've made a video to display the users in React already. Please, check that out if you haven't. I will make a video on the editing and saving part this week. Thank you so much.
@nikilkvn
@nikilkvn Жыл бұрын
woww man.. you are simply good.. :) keep going..
@ahmedzahid8354
@ahmedzahid8354 Жыл бұрын
Thanks for this video.
@dannisisgt
@dannisisgt 10 ай бұрын
Thanks Amigo, very well explained. What if data has 10k+ records every query load all data and split it?
@jr.developer
@jr.developer 9 ай бұрын
You could write your own paginate function with custom logic. In that you would need to handle logic to get total row count and calculate the offset and limit values to query the database to get the desired page rows. Here's an example from the latest docs - uriyyo-fastapi-pagination.netlify.app/tutorials_advanced/custom-paginate/ Sorry for the delay. I hope this helps you.
@codexperience7951
@codexperience7951 Жыл бұрын
Bro what is your linter for python
@jr.developer
@jr.developer Жыл бұрын
It's just the VS Code extension: Python by Microsoft. Also, make sure that you have autopep8 installed for it to work.
React + FastAPI Pagination
30:53
Jr. Developer
Рет қаралды 1 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 167 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 200 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 81 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 138 МЛН
Пагинация в БД без offset. Работаем с запросами
24:52
JavaScript Pagination in ~10 Minutes (Super EASY!!)
13:06
James Q Quick
Рет қаралды 32 М.
FastAPI file upload | Pet-project Anti-TikTok | #one
33:23
FastAPI Channel
Рет қаралды 12 М.
Build an AI app with FastAPI and Docker - Coding Tutorial with Tips
35:18
Logging in FastAPI Apps / Writing a FastAPI Middleware
31:01
Better Stack
Рет қаралды 23 М.
How to build a FastAPI app with PostgreSQL
27:37
Eric Roby
Рет қаралды 56 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 200 МЛН