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.

Files for dynamo-json, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size dynamo_json-1.2.0-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dynamo-json-1.2.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page