Skip to main content

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

Download files

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

Files for marshmallow-dynamodb, version 0.0.9
Filename, size & hash File type Python version Upload date
marshmallow_dynamodb-0.0.9-py3-none-any.whl (3.3 kB) View hashes Wheel py3
marshmallow-dynamodb-0.0.9.tar.gz (2.6 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page