https://github.com/vanng822/pypagination
Pagination in CPython
https://github.com/vanng822/pypagination
Last synced: about 2 months ago
JSON representation
Pagination in CPython
- Host: GitHub
- URL: https://github.com/vanng822/pypagination
- Owner: vanng822
- Created: 2013-08-17T15:22:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-14T09:22:53.000Z (over 11 years ago)
- Last Synced: 2025-01-18T05:27:39.150Z (3 months ago)
- Language: C
- Homepage:
- Size: 266 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pypagination
============Pagination in CPython
[](http://travis-ci.org/vanng822/pypagination)
# Example
import pagination
# total 1000 items in result
p = pagination.Paginator(1000,
prelink= '/test?go=3',
current = 1,
pageLinks = 5,
rowsPerPage = 10,
)
print p.render()
# OR
print p.render(pattern="item")
# OR for pagination data
print p.getPaginationData()