Flask-PagedList bundles features from pypagedlist into a blueprint named ‘PagedList’.
Installation
Flask-PagedList can be installed using pip from PyPI. virtualenv is highly recommended:
pip install -U flask-pagedlist
For development, instead, clone the github repository, and use:
python setup.py develop # Or, pip install -e .
Example Project
Screenshots
Traditional
AJAX
Run
Here is a simple description about how to run the demo project:
# 1. Clone this git repo in order to get the example
git clone https://github.com/timonwong/flask-pagedlist.git
cd flask-pagedlist
# 2. Install flask-pagedlist
pip install -U flask-pagedlist
# 3. Install dependencies for the example
pip install -U -r example-requirements.txt
# 4. Start the example project
python run_example.py
Usage
Basic usage
Here is an example:
from flask_pagedlist import PagedList
PagedList(app)
Static resources
pagedlist_static_for is recommended for requiring static resources for Flask-PagedList in templates:
def pagedlist_static_for(filename, use_minified=None):
"""Resource finding function, also available in templates.
:param filename: File to find a URL for.
:param use_minified': If set to ``True``/``False``, use/don't use
minified. If ``None``, use the default setting
from ``PAGEDLIST_USE_MINIFIED``.
:return: A URL.
"""
Configuration
PAGEDLIST_USE_MINIFIED
PAGEDLIST_PREFIX
Metadata
Release files for Flask-PagedList 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-PagedList-0.2.1.zip | 436.8 kB | Without provenance | Details for Flask-PagedList-0.2.1.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_PagedList-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for Flask_PagedList-0.2.1-py2.py3-none-any.whl |
Total release size: 446.9 kB
Release files / Flask-PagedList-0.2.1.zip
| Download URL | Flask-PagedList-0.2.1.zip |
|---|---|
| Size | 436.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b0d1b538d9cfc1d8ce69abe11fd42c7f0f8b5592d185638cd9d09a62dca84a8
|
|
BLAKE2b-256 checksum How to use checksums |
e89ed3abb5afd6bf73040081cc26128ca4b5dd6eb50ba20090e93805968f6842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Flask_PagedList-0.2.1-py2.py3-none-any.whl
| Download URL | Flask_PagedList-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
226384811f93e3f1ae3d316cb16af918d080d9d14e978f6831ea97d062188aa3
|
|
BLAKE2b-256 checksum How to use checksums |
73539d0eb442717a6f0455c5e5a9aed4293ab137fa0e2e91e4008de5f12a2507
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-PagedList 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.