DynamoDB value serialisation and deserialisation
Project description
DynamoDB value serialisation and deserialisation
Convert values from AWS DynamoDB to native Python types.
Makes more sensible decisions about numbers and binary values, at the cost of floating-point precision. Very lightweight.
Installation
pip install dynamodb-serialise
Usage
import dynamodb_serialise
dynamodb_serialise.deserialise(
{"M": {"foo": {"N": "42"}, "bar": {"B": "c3BhbQ=="}}}
)
# {'foo': 42, 'bar': b'spam'}
dynamodb_serialise.serialise(
{'foo': 42, 'bar': b'spam'}, bytes_to_base64=True
)
# {"M": {"foo": {"N": "42"}, "bar": {"B": "c3BhbQ=="}}}
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 dynamodb_serialise-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61b973fdb058b3c0f10ff2c6cfac1455e0506c641250dabf0405aa2b62499be |
|
MD5 | f4bf2a9d7539a056f206e4920c8768e6 |
|
BLAKE2b-256 | 5035a721bd1f7066e071f1b136e5ddfa3e3bd3e36ea6e10b0dd046d44e5b5c72 |