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 Distribution
dynamo-json-1.2.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for dynamo_json-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa10ddafb05f9bee422c8984a7b88b77b1eb3327359470fc3e16098ccac22ce |
|
MD5 | 54c45c17b20dd39933b473e85cb3f837 |
|
BLAKE2b-256 | 9589842c9a341cab2074874d48b4deec489f1c11723a0bbac2354557945725dc |