Python Script for help your pagination.
Go to file
2024-11-13 17:54:31 +07:00
LICENSE First commit 2024-11-13 17:54:31 +07:00
pageforge.py First commit 2024-11-13 17:54:31 +07:00
README.md First commit 2024-11-13 17:54:31 +07:00

pageforge

Python Script for help your pagination.

Usage

import pageforge

result = pageforge.count({'page':6,'limit':10,'records':1432})
print(result)

Output

{
  'page': {
    'current': 6,
    'all': 144
  },
  'record': {
    'all': 1432,
    'min': 51,
    'max': 60
  },
  'limit': 10,
  'offset': 50
}