skillfed

flask-paginate

Simple paginate support for flask

flask-paginate v2024.4.12 233.1K downloads/30d#9,044 on PyPI287
Permissive license BSD-3-Clause DORMANT released

What it is and what it does

flask-paginate is a lightweight Flask extension that generates HTML pagination controls for displaying paginated data in web templates. It handles the rendering of page links and optional pagination info (e.g., "Total 100 posts, displaying 20–30") and supports styling with multiple CSS frameworks. The package depends only on Flask and installs as a pure Python wheel with no compiled dependencies.

The typical workflow is to pass pagination parameters to the extension's rendering function, which outputs HTML that you insert into your template. The package is dormant—its last release was in April 2024 and no updates have been made since, though the repository itself has recent activity. It supports a wide range of Python versions from 2.6 through 3.11, though that breadth may reflect age rather than active testing.

Use it for:

  • Render page navigation links in a Flask template when displaying a subset of database results.
  • Display pagination info (total count, current range) alongside page links in a product listing or search results page.
  • Add pagination UI to a data table or list view without writing custom HTML and link-generation logic.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds pagination UI components to Flask applications, generating HTML pagination links with support for multiple CSS frameworks.

Yes, if you need simple pagination UI in a Flask app and don't require recent updates. The package is stable, has no known vulnerabilities, and installs with zero friction. However, be aware that it is dormant—no active maintenance for 854 days—so if you hit a bug or need compatibility with a new Flask version, you may need to fork or patch it yourself.

Install

flask-paginate on PyPI

pip

pip install flask-paginate

uv

uv add flask-paginate

poetry

poetry add flask-paginate

Installing flask-paginate

Before you install

Low friction: pure Python wheel with only Flask as a runtime dependency. Maintenance is dormant—last release was 854 days ago, though the repository remains active with a recent commit on 2024-12-23 and 287 stars.

License in practice

BSD-3-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions, provided you include the license text.

Quickstart

pip install flask-paginate

from flask_paginate import Pagination

pagination = Pagination(page=1, total=100, per_page=20)
html = pagination.links

Verify before relying

  • Which CSS frameworks are supported and whether they remain current with modern web standards.
  • Whether the package works reliably with current Flask versions given the long gap since the last release.

Package facts

License BSD-3-Clause (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — Flask
Maintenance dormant — 854 days since the last release
Last repo commit
First released
Downloads 233,125/month — #9,044 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: flask_paginate-2024.4.12-py2.py3-none-any.whl

Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules

Tags

flask paginationpaginate flask templatespagination links htmlflask page navigationpagination ui framework
flask-extensionpagination-ui

More Python Modules packages