Skip to main content

marshmallow_pageinfo

Page info marshmallow schema for api

Installation

pip install -U marshmallow_pageinfo

Example

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),
	}

Metadata

Release files for marshmallow-pageinfo 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marshmallow-pageinfo 1.0.0
File Size Uploaded
marshmallow_pageinfo-1.0.0.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marshmallow-pageinfo 1.0.0
File Interpreter ABI Platform
marshmallow_pageinfo-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.2 kB

Release files / marshmallow_pageinfo-1.0.0.tar.gz

Download URL marshmallow_pageinfo-1.0.0.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1776d265eb7ed8bb987c0031a1ecf57981d9ce6c133309152ab0e897180908c3
BLAKE2b-256 checksum
How to use checksums
265eef99e98ee139154074525ad7ed23e1e8ce502267fbd54fdd82e3b9596330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Release files / marshmallow_pageinfo-1.0.0-py3-none-any.whl

Download URL marshmallow_pageinfo-1.0.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b5a05a56b56b2e7e7fdd5e15b3427cc2926c5d2a525085f68ab8f913ce689ea
BLAKE2b-256 checksum
How to use checksums
408886eb232eeac7a48c276e9283c3b0c702e5a06d2af379d7d1d87e8509e04c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page