Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 689 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 689 Bytes

Build

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"}