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
File details
Details for the file marshmallow-dynamodb-0.0.9.tar.gz
.
File metadata
- Download URL: marshmallow-dynamodb-0.0.9.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c34b8e06830099ad917d34c0b98beceac3f39178294152725c403e0d06db30 |
|
MD5 | fd3c27f8779da783babdfb372c1115c1 |
|
BLAKE2b-256 | 119c480fa2a8528cfd0e30e0ff16b7972fe954edc0371ea0969e40b02d7e423a |
File details
Details for the file marshmallow_dynamodb-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: marshmallow_dynamodb-0.0.9-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d7c021cd29715f1b10e375b74c59a250cd80eef2fda35c22f19af881a91c2c |
|
MD5 | 38f6543ee818ebbe58f567ef98d4f745 |
|
BLAKE2b-256 | da43663af3087b1896d069f8ab088f9790746163fd6877421f12227ade5426fd |