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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file falcon_marshmallow-0.2.0rc6.tar.gz
.
File metadata
- Download URL: falcon_marshmallow-0.2.0rc6.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18fb5c3c9923f26d42592ccc4f0a5c85875a682b44002535f4d2126b5d9a283a |
|
MD5 | cea1b88407287fd731d04de4227ef5a8 |
|
BLAKE2b-256 | 59ceedb54275fbd80e08e611db12fd9910fe3ef017235c040fe382870218045c |