Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Page info marshmallow schema for api

Project description


Page info marshmallow schema for api


pip install -U marshmallow_pageinfo


from marshmallow_pageinfo import PAGE_INFO_SCHEMA

@controller.route('/', methods=['GET'])
def get_todo():
	page_info = PAGE_INFO_SCHEMA.load(request.args)
	pagination = todo_q.paginate(page_info['page'], page_info['per_page'])
	return {
		'todos': TODO_SCHEMA.dump(pagination.items),
		'pageInfo': PAGE_INFO_SCHEMA.dump(pagination),

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for marshmallow-pageinfo, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size marshmallow_pageinfo-1.0.0-py3-none-any.whl (2.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size marshmallow_pageinfo-1.0.0.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page