Skip to content

Sick of DynamoDB using its own data type descriptors? Swap between DynamoDB and normal JSON!

License

Notifications You must be signed in to change notification settings

adilosa/dynamo-json

Repository files navigation

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

About

Sick of DynamoDB using its own data type descriptors? Swap between DynamoDB and normal JSON!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages