Skip to main content

Automatic Marshmallow (De)serialization in Falcon

Project description

Falcon-Marshmallow is a middleware library designed to assist developers who wish to easily incorporate automatic (de)serialization using Marshmallow schemas into their Falcon application. Once the middleware is in place, requests to any resources that have a schema attribute defined will automatically use that schema to parse the request body. In addition, responses for that resource will automatically use the defined schema to dump results.

You may also specify method-specific schemas on a resource, e.g. patch_schema, which will be used only when the request method matches the schema prefix.

By default, this middleware will also automatically parse requests and responses to JSON even if they do not have any schema(s) defined. This can be easily disabled, if you would prefer to use your own JSON parsing middleware. This is done using simplejson by default, but you may specify any module or object you like that implements the public interface of the standard library json module.

Project details


Download files

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

Source Distribution

falcon_marshmallow-0.3.0rc1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

falcon_marshmallow-0.3.0rc1-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file falcon_marshmallow-0.3.0rc1.tar.gz.

File metadata

  • Download URL: falcon_marshmallow-0.3.0rc1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.2

File hashes

Hashes for falcon_marshmallow-0.3.0rc1.tar.gz
Algorithm Hash digest
SHA256 4258a20db00a3117ce44f9444c38078114257fe050ac05e9069cb33b1ac94f52
MD5 248c0bc2ca2c0d7ed080437a99158f49
BLAKE2b-256 046e1828cb17e4b20d88242f7539bcf0e587dab9edf56a5433e61ff9dc3eff5d

See more details on using hashes here.

File details

Details for the file falcon_marshmallow-0.3.0rc1-py2.py3-none-any.whl.

File metadata

  • Download URL: falcon_marshmallow-0.3.0rc1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.2

File hashes

Hashes for falcon_marshmallow-0.3.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20fd9d0f7481c63e53d28cefa499b9ecdd0c89fd9952f1332a8f188f6e076d8e
MD5 632beedbd412d8f2d1a326e1d79e95a3
BLAKE2b-256 6098225134a84e3eab1ed3f98494c48991412d8aa214b6db16671fc163648f9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page