Roughly calculates DynamoDB item size.
Project description
dynamo-size
Roughly calculates DynamoDB item size.
item = {
'Id': 123,
'Names': [
'foo',
'bar',
'qux',
# 500 more names
]
}
from dynamo_size import calculate_bytes, calculate_kbytes
calculate_bytes(item) # returns 2025
calculate_kbytes(item) # return 1.9775390625 (2025 / 1024)
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-size-1.0.1.tar.gz
(2.4 kB
view details)
File details
Details for the file dynamo-size-1.0.1.tar.gz
.
File metadata
- Download URL: dynamo-size-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a279c06cadf418b35071b548eba89d4c5bbeb571b2b3e4edcd1978b2bbc16abd |
|
MD5 | 16ba320e442d1499cdfdae3220413cb7 |
|
BLAKE2b-256 | 5a731b9196186fed0c4ccbbf9bf7a50c3dc8ca0b5077bd91a32b8212b5044621 |