{ "info": { "author": "Ken'ichi Ogawa", "author_email": "kenichi@ogwk.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "# validate_aws_sns_message\n\nValidate integrity of Amazon SNS messages.\n\nRefined from `validatesns`.\n\n* Verifies cryptographic signature.\n* Checks signing certificate is hosted on an Amazon-controlled URL.\n* Requires message be no older than one hour, the maximum lifetime of an SNS message.\n\nLicence: [MIT](https://opensource.org/licenses/MIT)\n\n## Quick start\n\n```shell\n\npip install validate_aws_sns_message\n\n```\n\n```python\n\nimport validate_aws_sns_message\n\n# Raise validate_aws_sns_message.ValidationError if message is invalid.\nvalidate_aws_sns_message.validate(decoded_json_message_from_sns)\n\n```\n\n## Gotchas\n\nThe ``validate`` function downloads the signing certificate on every call. For performance reasons, it's worth caching certificates - you can do this by passing in a ``get_certificate`` function.\n\nThis takes a ``url``, and returns the certificate content. Your function could cache to the filesystem, a database, or wherever makes sense.\n\n## Contribute\n\nGithub: \n\n## Special thanks\n\n* Original `validatesns`: \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kenichi-ogawa-1988/validate_aws_sns_message", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "validate-aws-sns-message", "package_url": "https://pypi.org/project/validate-aws-sns-message/", "platform": "", "project_url": "https://pypi.org/project/validate-aws-sns-message/", "project_urls": { "Homepage": "https://github.com/kenichi-ogawa-1988/validate_aws_sns_message" }, "release_url": "https://pypi.org/project/validate-aws-sns-message/0.9.0/", "requires_dist": [ "cffi", "oscrypto", "six" ], "requires_python": "", "summary": "Validate integrity of Amazon SNS messages (Refined)", "version": "0.9.0" }, "last_serial": 5571832, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "4be1257821481d8cdfc16cd18f70116d", "sha256": "3da7364c18ae54014b741e8d0ea854fb9a6966212ea96f6676a380df2d6fa98f" }, "downloads": -1, "filename": "validate_aws_sns_message-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4be1257821481d8cdfc16cd18f70116d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4940, "upload_time": "2019-07-23T10:49:43", "url": "https://files.pythonhosted.org/packages/d0/20/3178770574bddf46262dfaa3142cc7d527a55a79cb3ae985dd2c2db6c689/validate_aws_sns_message-0.9.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1963c672755613eb38a93c01b88a581", "sha256": "099e073c0aaf66a5e294ff71c91dbdbc32583addb1b761ee42ea8ea2de1339cc" }, "downloads": -1, "filename": "validate_aws_sns_message-0.9.0.tar.gz", "has_sig": false, "md5_digest": "a1963c672755613eb38a93c01b88a581", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3796, "upload_time": "2019-07-23T10:49:46", "url": "https://files.pythonhosted.org/packages/d4/06/12cdd3d0d573941a21dc1eccd621ce372eb377246720d78fc428f29d70d9/validate_aws_sns_message-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4be1257821481d8cdfc16cd18f70116d", "sha256": "3da7364c18ae54014b741e8d0ea854fb9a6966212ea96f6676a380df2d6fa98f" }, "downloads": -1, "filename": "validate_aws_sns_message-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4be1257821481d8cdfc16cd18f70116d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4940, "upload_time": "2019-07-23T10:49:43", "url": "https://files.pythonhosted.org/packages/d0/20/3178770574bddf46262dfaa3142cc7d527a55a79cb3ae985dd2c2db6c689/validate_aws_sns_message-0.9.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1963c672755613eb38a93c01b88a581", "sha256": "099e073c0aaf66a5e294ff71c91dbdbc32583addb1b761ee42ea8ea2de1339cc" }, "downloads": -1, "filename": "validate_aws_sns_message-0.9.0.tar.gz", "has_sig": false, "md5_digest": "a1963c672755613eb38a93c01b88a581", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3796, "upload_time": "2019-07-23T10:49:46", "url": "https://files.pythonhosted.org/packages/d4/06/12cdd3d0d573941a21dc1eccd621ce372eb377246720d78fc428f29d70d9/validate_aws_sns_message-0.9.0.tar.gz" } ] }