Skip to main content

Pagilist

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

Usage

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

##OR##

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]

Metadata

Release files for pagilist 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pagilist 0.0.2
File Size Uploaded
pagilist-0.0.2.tar.gz 1.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pagilist 0.0.2
File Interpreter ABI Platform
pagilist-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 kB

Release files / pagilist-0.0.2.tar.gz

Download URL pagilist-0.0.2.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0316232248fd1d3a15b2fb2aa06f6e57eeed7c57d6db0bb1cba78746c1b7aedc
BLAKE2b-256 checksum
How to use checksums
56a5913470c1100faa1f5512d19a3975d34e92b8e00763de78a10a48200999e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

Release files / pagilist-0.0.2-py3-none-any.whl

Download URL pagilist-0.0.2-py3-none-any.whl
Size 1.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d22a6478321f17e955f3efad422d88d43ca7b546046f012f262f87c880d47574
BLAKE2b-256 checksum
How to use checksums
f58dc32cee309c59a56e0c3e875110673c5b950384a92d185f39dc7d561b72b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page