Skip to main content

Filter and Pagination in Django

Project description

Filter & Pagination in Django

  • Filter your result-set
  • Paginate your result-set as per object you want in your response
  • It's a open source service.
  • Easy to implement
  • Fastest execution & High performance

Install with pip

pip install filter-and-pagination

How to implement

  • import FilterPagination
from filter_and_pagination import FilterPagination
  • Used in
FilterPagination.filter_and_pagination(request, ModelRefrence)

Demo

Request:

Response:

{
	"status_code": 200,
	"status": "success",
	"message": [
		"Customer data retrieved successfully."
	],
	"data": {
		"dataset": [{
			"id": 166,
			"name": "Jasmin",
			"full_name": "Jasmin Perry",
			"email": "nicolemathews@smith-anderson.net",
			"contact_no_dail_code": "186",
			"contact_no": "9831999092",
			"dob": "1936-07-27",
			"gender": 1,
			"address": "466 Zuniga Trail Suite 955\nLake Brandonside, AL 22894",
			"extra": {},
			"created_at": "2020-01-11T10:09:24.780734Z",
			"updated_at": "2020-01-11T10:09:24.780745Z"
		}],
		"pagination": {
			"per_page": 20,
			"current_page": 1,
			"total_count": 1,
			"total_pages": 1
		}
	}
}

PyPi


GitHub


PostMan


Medium


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for filter-and-pagination, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size filter_and_pagination-1.0.7-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size filter_and_pagination-1.0.7.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page