dynamodb-serialise


Namedynamodb-serialise JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/EpicWink/dynamodb-serialise
SummaryDynamoDB value serialisation and deserialisation
upload_time2021-08-25 09:55:45
maintainer
docs_urlNone
authorLaurie O
requires_python~=3.6
license"MIT"
keywords dynamodb serialisation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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=="}}}
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/EpicWink/dynamodb-serialise",
    "name": "dynamodb-serialise",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=3.6",
    "maintainer_email": "",
    "keywords": "dynamodb,serialisation",
    "author": "Laurie O",
    "author_email": "laurie_opperman@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f6/66/36224a8381993d3442f862601b55daffe6b2e07e59636225c0afa3cd0775/dynamodb-serialise-1.0.0.tar.gz",
    "platform": "",
    "description": "# DynamoDB value serialisation and deserialisation\nConvert values from AWS DynamoDB to native Python types.\n\nMakes more sensible decisions about numbers and binary values, at the cost of\nfloating-point precision. Very lightweight.\n\n## Installation\n```shell\npip install dynamodb-serialise\n```\n\n## Usage\n```python\nimport dynamodb_serialise\n\ndynamodb_serialise.deserialise(\n    {\"M\": {\"foo\": {\"N\": \"42\"}, \"bar\": {\"B\": \"c3BhbQ==\"}}}\n)\n# {'foo': 42, 'bar': b'spam'}\n\ndynamodb_serialise.serialise(\n    {'foo': 42, 'bar': b'spam'}, bytes_to_base64=True\n)\n# {\"M\": {\"foo\": {\"N\": \"42\"}, \"bar\": {\"B\": \"c3BhbQ==\"}}}\n```\n\n\n",
    "bugtrack_url": null,
    "license": "\"MIT\"",
    "summary": "DynamoDB value serialisation and deserialisation",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/EpicWink/dynamodb-serialise"
    },
    "split_keywords": [
        "dynamodb",
        "serialisation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5035a721bd1f7066e071f1b136e5ddfa3e3bd3e36ea6e10b0dd046d44e5b5c72",
                "md5": "f4bf2a9d7539a056f206e4920c8768e6",
                "sha256": "e61b973fdb058b3c0f10ff2c6cfac1455e0506c641250dabf0405aa2b62499be"
            },
            "downloads": -1,
            "filename": "dynamodb_serialise-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f4bf2a9d7539a056f206e4920c8768e6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.6",
            "size": 3721,
            "upload_time": "2021-08-25T09:55:44",
            "upload_time_iso_8601": "2021-08-25T09:55:44.170430Z",
            "url": "https://files.pythonhosted.org/packages/50/35/a721bd1f7066e071f1b136e5ddfa3e3bd3e36ea6e10b0dd046d44e5b5c72/dynamodb_serialise-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f66636224a8381993d3442f862601b55daffe6b2e07e59636225c0afa3cd0775",
                "md5": "9a077aa9a15de6ca4a9684ea55ecfa11",
                "sha256": "f61f94e72e2b942bbab6d380171e6d7842175130cc744eac3c23b9232057f045"
            },
            "downloads": -1,
            "filename": "dynamodb-serialise-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9a077aa9a15de6ca4a9684ea55ecfa11",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.6",
            "size": 6640,
            "upload_time": "2021-08-25T09:55:45",
            "upload_time_iso_8601": "2021-08-25T09:55:45.991166Z",
            "url": "https://files.pythonhosted.org/packages/f6/66/36224a8381993d3442f862601b55daffe6b2e07e59636225c0afa3cd0775/dynamodb-serialise-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-08-25 09:55:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "EpicWink",
    "github_project": "dynamodb-serialise",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dynamodb-serialise"
}
        
Elapsed time: 0.66375s