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.1.0rc10.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

falcon_marshmallow-0.1.0rc10-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file falcon_marshmallow-0.1.0rc10.tar.gz.

File metadata

File hashes

Hashes for falcon_marshmallow-0.1.0rc10.tar.gz
Algorithm Hash digest
SHA256 ab66cfddea4c33280a9a71bd328eaff9592c33a8d79e0955b0cf932a878e946f
MD5 f478b223237898fafb775679ae7d586a
BLAKE2b-256 b43748e3be09a14a24f3316c287614f5fc5f9eefaccda2961a8f84c96bbe9e8d

See more details on using hashes here.

File details

Details for the file falcon_marshmallow-0.1.0rc10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for falcon_marshmallow-0.1.0rc10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f141e9c5d902f59ea57983b2f45314a2c341f18e542a1eab28935a3b1f0d82f5
MD5 8d978605e3905843f694bad52df422eb
BLAKE2b-256 18da188ee357435f799b7a308cf9ee7f970d6d08a46a498aba23b78b5511fb2d

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