{"repo":"uriyyo/fastapi-pagination","free":true,"listed":false,"github":"https://github.com/uriyyo/fastapi-pagination","clone":"git clone https://github.com/uriyyo/fastapi-pagination.git","description":"FastAPI pagination 📖","language":"Python","stars":1679,"topics":["fastapi","fastapi-sqlalchemy","fastapi-pagination","pagination","gino"],"license":"MIT","category":"databases-storage","readme_excerpt":"Introduction fastapi-pagination is a Python library designed to simplify pagination in FastAPI applications. It provides a set of utility functions and data models to help you paginate your database queries and return paginated responses to your clients. With fastapi-pagination , you can easily define pagination parameters in your FastAPI endpoint functions, and use them to generate paginated responses that include the requested subset of your data. The library supports a variety of pagination strategies, including cursor-based pagination and page-based pagination. fastapi-pagination is built on top of the popular fastapi library, and it works with a wide range of SQL and NoSQL database frameworks. It also supports async/await syntax and is compatible with Python 3.10 and higher. Features: Simplifies pagination in FastAPI applications. Supports a variety of pagination strategies, including cursor-based pagination and page-based pagination Works with a wide range of SQL and NoSQL database frameworks, including SQLAlchemy , Tortoise ORM , and PyMongo . Supports async/await syntax. Compatible with Python 3.10 and higher. ---- For more information on how to use fastapi-pagination, please refer to the official documentation. --- Installation Quickstart All you need to do is to use Page class as a return type for your endpoint and call paginate function on data you want to paginate. Please, be careful when you work with databases, because default paginate will require to load all d","default_branch":null,"files":null,"tree":[],"storefront":"/r/uriyyo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uriyyo/fastapi-pagination/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}