dynamo-json is a Python utility library (currently v1.2.0) designed to facilitate seamless conversion between standard Python objects (including Decimal, datetime, and UUID) and the specialized JSON format used by Amazon DynamoDB. It provides `dumps` and `loads` functions that mimic the standard `json` library, handling the DynamoDB type descriptors (e.g., {'S': 'string'}, {'N': '123'}) automatically. The library has been in maintenance mode since its last update in 2020, with a focus on stable functionality.
pip install dynamo-jsonVerified import paths — ran on the pinned version, not inferred.
Demonstrates converting a complex Python dictionary containing Decimals, datetimes, and UUIDs to DynamoDB-compatible JSON and back. The `json_util` module handles the necessary type marshalling and unmarshalling.
Always explicitly install `dynamo-json` if this specific library is desired, and verify the package source if encountering unexpected behavior.
For items exceeding 400KB, consider storing large attributes in Amazon S3 and referencing them in DynamoDB, or restructure your data model to break down large items into smaller ones.
Consistently use `dynamo_json.json_util.dumps()` and `loads()` for all DynamoDB-related JSON serialization/deserialization to ensure proper handling of numerical precision and other complex types like `datetime` and `UUID`.
No dependency data recorded yet.