This repo is a test sample for pagination in flask, using the apply named flask-paginate.
Noted in the requirements.txt file you will note that dnspython is installed to handle the MONGO URI.
The main install is flask-paginate.
Selecting the number of items per page appears to be bugged. Changing this value to a different number always seems to return 10.