Swap between DynamoDB JSON and normal JSON
Project description
dynamo-json
Sick of DynamoDB using its own data type descriptors? Swap between DynamoDB and normal JSON!
Installation
Install from PyPI via pip
:
pip install dynamo_json
Usage
Use as a library
import dynamo_json
dynamo_json.marshall({"some": ["json", "document"]})
# {"some": {"L": [{"S": "json"}, {"S": "document"}]}}
dynamo_json.unmarshall({"some": {"L": [{"S": "json"}, {"S": "document"}]}})
# {"some": ["json", "document"]}
or as a CLI tool
$ dynamo-json '{"my": "json"}'
{"my": {"S": "json"}}
$ dynamo-json '{"my": {"S": "dynamo-json"}}'
{"my": "dynamo-json"}
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for dynamo_json-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099a970ef6b6cb83dc3d13d068606f07600af44f988cd2f50d27fa7f3bd42b8f |
|
MD5 | 66ba0f1e8f1887251ac6edc3a50a3a95 |
|
BLAKE2b-256 | 534206d31e8f45db529e7ffdc7cff779505c29e3bc17fdffd98cb0c9206cae2d |