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


Download files

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

Source Distribution

marshmallow-dynamodb-0.0.9.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

marshmallow_dynamodb-0.0.9-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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