Skip to main content

List pagination by page or limit,offset

Project description


Simple module to paginate lists using page or limit/offset. Source code available at Github.


page = 0 #first page
limit = 3 #three items per page
page_sample = paginate(list, page, limit)


offset = 3 #start from the fourth element on list
page_offset = paginate_offset(list, offset, 5) #get from the fourth element with a limit of 5 elements

print(page_sample) #outputs [1, 2, 3]
print(page_offset) #outputs [4, 5, 6, 7, 8]

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 pagilist, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pagilist-0.0.2-py3-none-any.whl (1.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pagilist-0.0.2.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page