cfnresponse


Namecfnresponse JSON
Version 1.1.5 PyPI version JSON
download
home_pagehttps://github.com/gene1wood/cfnresponse
SummarySend a response object to a custom resource by way of an Amazon S3 presigned URL
upload_time2024-08-03 20:06:04
maintainerNone
docs_urlNone
authorAmazon Web Services
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cfnresponse

[![PyPi Version](https://badgen.net/pypi/v/cfnresponse)](https://pypi.org/project/cfnresponse/)

This package contains the Amazon Web Services (AWS) cfnresponse module which is
available in Python AWS Lambda environments.

The code for this module can be found [in the AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html#w2ab1c23c23c16b9c15)
and in the [awslabs GitHub repo](https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py)

You can compare the code in `awslabs` with this pypi package with this command

```
if [ "$(curl -s https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py | sha256sum)" = "$(curl -s https://raw.githubusercontent.com/gene1wood/cfnresponse/master/cfnresponse/__init__.py | sha256sum)" ]; then echo "GitHub matches AWS"; else echo "GitHub does not match AWS"; fi
if [ "$(curl -s https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py | sha256sum)" = "$(wget --quiet https://files.pythonhosted.org/packages/f9/b7/76b0abe8003a797ab535cae77e39568092eff18ac0e8e10fa9ffa245e5d3/cfnresponse-1.1.4-py2.py3-none-any.whl && unzip -p cfnresponse-1.1.4-py2.py3-none-any.whl cfnresponse/__init__.py | sha256sum && rm cfnresponse-1.1.4-py2.py3-none-any.whl)" ]; then echo "PyPi matches AWS"; else echo "PyPi does not match AWS"; fi
```

This module [used to use the vendored version of `requests`](https://github.com/awslabs/aws-cloudformation-templates/blob/dd484dd32680fcbfc52b34de45923f78b5626e39/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py)
provided by `botocore` but this changed in 
[April 2020](https://github.com/awslabs/aws-cloudformation-templates/commit/44b76a1f694f82eeee14fe804bf9dc973fdc2230#diff-f6c57142d56d8704aaf1d429ff1a06a6dd3f2ee6d80f0572ada8af010ff17124)
to instead use `urllib3` as
[`botocore.vendored.requests` was removed](https://github.com/boto/botocore/pull/1829).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gene1wood/cfnresponse",
    "name": "cfnresponse",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Amazon Web Services",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/00/72/6c40e02aee1ed2226602154fddc3ed83d61493d9ab9d084a93bac0cb1338/cfnresponse-1.1.5.tar.gz",
    "platform": null,
    "description": "# cfnresponse\n\n[![PyPi Version](https://badgen.net/pypi/v/cfnresponse)](https://pypi.org/project/cfnresponse/)\n\nThis package contains the Amazon Web Services (AWS) cfnresponse module which is\navailable in Python AWS Lambda environments.\n\nThe code for this module can be found [in the AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html#w2ab1c23c23c16b9c15)\nand in the [awslabs GitHub repo](https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py)\n\nYou can compare the code in `awslabs` with this pypi package with this command\n\n```\nif [ \"$(curl -s https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py | sha256sum)\" = \"$(curl -s https://raw.githubusercontent.com/gene1wood/cfnresponse/master/cfnresponse/__init__.py | sha256sum)\" ]; then echo \"GitHub matches AWS\"; else echo \"GitHub does not match AWS\"; fi\nif [ \"$(curl -s https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py | sha256sum)\" = \"$(wget --quiet https://files.pythonhosted.org/packages/f9/b7/76b0abe8003a797ab535cae77e39568092eff18ac0e8e10fa9ffa245e5d3/cfnresponse-1.1.4-py2.py3-none-any.whl && unzip -p cfnresponse-1.1.4-py2.py3-none-any.whl cfnresponse/__init__.py | sha256sum && rm cfnresponse-1.1.4-py2.py3-none-any.whl)\" ]; then echo \"PyPi matches AWS\"; else echo \"PyPi does not match AWS\"; fi\n```\n\nThis module [used to use the vendored version of `requests`](https://github.com/awslabs/aws-cloudformation-templates/blob/dd484dd32680fcbfc52b34de45923f78b5626e39/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py)\nprovided by `botocore` but this changed in \n[April 2020](https://github.com/awslabs/aws-cloudformation-templates/commit/44b76a1f694f82eeee14fe804bf9dc973fdc2230#diff-f6c57142d56d8704aaf1d429ff1a06a6dd3f2ee6d80f0572ada8af010ff17124)\nto instead use `urllib3` as\n[`botocore.vendored.requests` was removed](https://github.com/boto/botocore/pull/1829).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Send a response object to a custom resource by way of an Amazon S3 presigned URL",
    "version": "1.1.5",
    "project_urls": {
        "Download": "https://github.com/gene1wood/cfnresponse/archive/refs/tags/v1.1.5.tar.gz",
        "Homepage": "https://github.com/gene1wood/cfnresponse",
        "Source": "https://github.com/gene1wood/cfnresponse"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d2a7c6339b227586c8d2231a2271ca4d72a56896d82de65216b0cdbcbd32aca",
                "md5": "340bef44175b1e986c8bd613a652bbf0",
                "sha256": "41fffa990166fe3b491cabfdaed1539be7625031763dcf3e227f932cfeda27fc"
            },
            "downloads": -1,
            "filename": "cfnresponse-1.1.5-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "340bef44175b1e986c8bd613a652bbf0",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 7073,
            "upload_time": "2024-08-03T20:06:03",
            "upload_time_iso_8601": "2024-08-03T20:06:03.095144Z",
            "url": "https://files.pythonhosted.org/packages/5d/2a/7c6339b227586c8d2231a2271ca4d72a56896d82de65216b0cdbcbd32aca/cfnresponse-1.1.5-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00726c40e02aee1ed2226602154fddc3ed83d61493d9ab9d084a93bac0cb1338",
                "md5": "0d0d0e98ea7483508a1bfbeaabd91b97",
                "sha256": "2ddac49d4abd63105ad1024b41907260c9088b3095a3f51fb27636cbbef74103"
            },
            "downloads": -1,
            "filename": "cfnresponse-1.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0d0d0e98ea7483508a1bfbeaabd91b97",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6786,
            "upload_time": "2024-08-03T20:06:04",
            "upload_time_iso_8601": "2024-08-03T20:06:04.407891Z",
            "url": "https://files.pythonhosted.org/packages/00/72/6c40e02aee1ed2226602154fddc3ed83d61493d9ab9d084a93bac0cb1338/cfnresponse-1.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-03 20:06:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gene1wood",
    "github_project": "cfnresponse",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cfnresponse"
}
        
Elapsed time: 0.80823s