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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dynamo-json-1.2.0.tar.gz.
File metadata
- Download URL: dynamo-json-1.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68f9840847b12f76e718be62bb702f482142803088e4ac1a2d3e3a16d15b36cb
|
|
| MD5 |
550f91c26b132444c53a458937052c64
|
|
| BLAKE2b-256 |
e074fba208a4621015e049a6bbfb1fdec739c7af461f0acee0a2f15f7d2cac30
|
File details
Details for the file dynamo_json-1.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: dynamo_json-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aa10ddafb05f9bee422c8984a7b88b77b1eb3327359470fc3e16098ccac22ce
|
|
| MD5 |
54c45c17b20dd39933b473e85cb3f837
|
|
| BLAKE2b-256 |
9589842c9a341cab2074874d48b4deec489f1c11723a0bbac2354557945725dc
|