Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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.

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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page