Extra fields to integrate Marshmallow and DynamoDb
Project description
DynamoDBFields:
Example usage:
from datetime import datetime
from marshmallow import Schema
from marshmallow_dynamodb.fields import DynamoDBDateTime
class SchemaFixture(Schema):
some_field = DynamoDBDateTime()
data, errors = SchemaFixture().load({'some_field': datetime.now().timestamp()})
# UnmarshalResult(data={'some_field': datetime.datetime(2018, 11, 22, 17, 37, 55)}, errors={})
SchemaFixture().dump(data)
# MarshalResult(data={'some_field': 1542915517.0}, errors={})
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
Built Distribution
Close
Hashes for marshmallow-dynamodb-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c34b8e06830099ad917d34c0b98beceac3f39178294152725c403e0d06db30 |
|
MD5 | fd3c27f8779da783babdfb372c1115c1 |
|
BLAKE2b-256 | 119c480fa2a8528cfd0e30e0ff16b7972fe954edc0371ea0969e40b02d7e423a |
Close
Hashes for marshmallow_dynamodb-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d7c021cd29715f1b10e375b74c59a250cd80eef2fda35c22f19af881a91c2c |
|
MD5 | 38f6543ee818ebbe58f567ef98d4f745 |
|
BLAKE2b-256 | da43663af3087b1896d069f8ab088f9790746163fd6877421f12227ade5426fd |