{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"Divides large lists or query results into manageable pages, handling navigation between pages and generating pagination UI markup or link metadata.","skillfed_tags":["pagination","web-ui","query-results"],"use_cases":["Display search results 10 at a time with first/previous/next/last navigation links in a web application","Paginate database query results without loading the entire result set into memory by wrapping the query object","Generate pagination UI for a REST API that returns large lists, using link_map() to build custom JSON responses","Build custom pagination markup for Bootstrap or Tailwind by passing a link_tag callable to override default HTML generation","Extend the Page class to paginate results from Elasticsearch, Solr, or other datastores via a custom wrapper class"],"what_it_does":"Paginate is a framework-agnostic pagination library that breaks large lists or query results into fixed-size pages. It provides a Page class that manages page state, calculates ranges, and generates HTML markup or link metadata for navigation controls. The library supports customization through wrapper classes to work with different data sources (lists, SQLAlchemy queries, Elasticsearch results) and allows you to override link generation and HTML formatting to match your template or UI framework.\n\nOriginally part of WebHelpers and tightly coupled to Pylons, this standalone version aims to work independently of any web framework. It handles the math of pagination\u2014calculating which items belong on each page, generating first/previous/next/last links, and optionally rendering HTML with configurable attributes. You can either use the built-in pager() method to generate HTML directly or call link_map() to get a dictionary of link information for use in custom templates.","worth_installing":"Yes, if you need simple, framework-agnostic pagination for lists or query results and can accept dormant maintenance. The library has no dependencies, low install friction, and a permissive license. However, verify compatibility with your Python version before relying on it in new projects, given the lack of recent updates and unspecified Python support."},"id":"paginate","links":{"html":"https://skillfed.io/packages/paginate","md":"https://skillfed.io/packages/paginate.md","pypi":"https://pypi.org/project/paginate/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-08-25","license_spdx":null,"license_treatment":"permissive","name":"paginate","python_support":"unspecified","summary":"Divides large result sets into pages for easier browsing"},"popularity":{"monthly_downloads":14325648,"position":1235,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.7"}
