Skip to main content

Swap between DynamoDB JSON and normal JSON

Project description

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

Project details


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)

Uploaded Source

Built Distribution

dynamo_json-1.2.0-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page