dynamodb-serialise-1.0.0
توضیحات
DynamoDB value serialisation and deserialisation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dynamodb-serialise-1.0.0 |
| نام | dynamodb-serialise |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Laurie O |
| ایمیل نویسنده | laurie_opperman@hotmail.com |
| آدرس صفحه اصلی | https://github.com/EpicWink/dynamodb-serialise |
| آدرس اینترنتی | https://pypi.org/project/dynamodb-serialise/ |
| مجوز | "MIT" |
# DynamoDB value serialisation and deserialisation
Convert values from AWS DynamoDB to native Python types.
Makes more sensible decisions about numbers and binary values, at the cost of
floating-point precision. Very lightweight.
## Installation
```shell
pip install dynamodb-serialise
```
## Usage
```python
import dynamodb_serialise
dynamodb_serialise.deserialise(
{"M": {"foo": {"N": "42"}, "bar": {"B": "c3BhbQ=="}}}
)
# {'foo': 42, 'bar': b'spam'}
dynamodb_serialise.serialise(
{'foo': 42, 'bar': b'spam'}, bytes_to_base64=True
)
# {"M": {"foo": {"N": "42"}, "bar": {"B": "c3BhbQ=="}}}
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| ~=3.6 | Python |
نحوه نصب
نصب پکیج whl dynamodb-serialise-1.0.0:
pip install dynamodb-serialise-1.0.0.whl
نصب پکیج tar.gz dynamodb-serialise-1.0.0:
pip install dynamodb-serialise-1.0.0.tar.gz