{ "info": { "author": "Daniel Holmes", "author_email": "daniel@danielholmes.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "=============================\nDjango Emulate AWS Env\n=============================\n\n.. image:: https://badge.fury.io/py/django-emulate-aws-env.svg\n :target: https://badge.fury.io/py/django-emulate-aws-env\n\n.. image:: https://travis-ci.org/danielholmes/django-emulate-aws-env.svg?branch=master\n :target: https://travis-ci.org/danielholmes/django-emulate-aws-env\n\n.. image:: https://codecov.io/gh/danielholmes/django-emulate-aws-env/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/danielholmes/django-emulate-aws-env\n\nEmulates the conditions of an AWS \"Serverless\" environment (`API Gateway`_ + Lambda_) in your test and development\nenvironments (such as those deployed by Zappa_).\n\nQuickstart\n----------\n\nInstall Django Emulate AWS Env::\n\n pip install django-emulate-aws-env\n\nAdd the Django Emulate AWS Env middleware. This should be the highest possible priority in your list and just in your\ndevelopment and test environments:\n\n.. code-block:: python\n\n MIDDLEWARE = [\n 'emulate_aws_env.middleware.modify_request',\n ...\n ]\n\nOr if you're using a dedicated settings file for tests/development:\n\n.. code-block:: python\n\n from .base import *\n\n ...\n\n MIDDLEWARE = ['emulate_aws_env.middleware.modify_request'] + MIDDLEWARE\n\n\nFeatures\n--------\n\nThe `API Gateway`_ service has the following restrictions which aren't present in the default environment used to test\nDjango projects:\n\n - `It doesn't allow duplicate query string names`_\n - `The request content length can't exceed 10485760 bytes`_\n\nThe provided middleware modifies the request to these restrictions.\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _`API Gateway`: https://aws.amazon.com/api-gateway/\n.. _Lambda: https://aws.amazon.com/lambda/\n.. _Zappa: https://github.com/Miserlou/django-zappa\n.. _`It doesn't allow duplicate query string names`: https://forums.aws.amazon.com/message.jspa?messageID=676456\n.. _`The request content length can't exceed 10485760 bytes`: http://stackoverflow.com/questions/33762259/increase-maximum-post-size-for-amazon-api-gateway\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2017-05-05)\n++++++++++++++++++\n\n* First release on PyPI.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/danielholmes/django-emulate-aws-env", "keywords": "django-emulate-aws-env", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-emulate-aws-env", "package_url": "https://pypi.org/project/django-emulate-aws-env/", "platform": "", "project_url": "https://pypi.org/project/django-emulate-aws-env/", "project_urls": { "Homepage": "https://github.com/danielholmes/django-emulate-aws-env" }, "release_url": "https://pypi.org/project/django-emulate-aws-env/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Emulates the conditions of an AWS \"Serverless\" environment (API Gateway + Lambda) in your test and development environments.", "version": "0.2.0" }, "last_serial": 2915292, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4f32d8c38a9d0cec1cd621688cc16836", "sha256": "a5093d083bef1a83a66313b0e20bb706680d47abe5aa5e43da907179c44ce49c" }, "downloads": -1, "filename": "django_emulate_aws_env-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4f32d8c38a9d0cec1cd621688cc16836", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5388, "upload_time": "2017-05-07T00:39:42", "url": "https://files.pythonhosted.org/packages/bd/80/03b1d6a6b58dd38b2e80c0ce372b70149894eb7382e47a24b194c3065430/django_emulate_aws_env-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "58f90e860ba51a5ac8b894a9bf9cb50b", "sha256": "4897ba2ecbbe8a2226cf8e774c689c484cf3d952cde717b50df555e442605063" }, "downloads": -1, "filename": "django-emulate-aws-env-0.1.0.tar.gz", "has_sig": false, "md5_digest": "58f90e860ba51a5ac8b894a9bf9cb50b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5890, "upload_time": "2017-05-07T00:39:38", "url": "https://files.pythonhosted.org/packages/33/c7/bcedae4dff0ef71484b9556f6c71356b64aa41a8bb6adc869dbe4e8c6ecc/django-emulate-aws-env-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "80ad5b4694725bc7e5fb074966a79b4a", "sha256": "cc20f38505ff9a96749c671ef077ed1f02634df501e8f10628ed84ab83b885f2" }, "downloads": -1, "filename": "django_emulate_aws_env-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "80ad5b4694725bc7e5fb074966a79b4a", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5381, "upload_time": "2017-06-01T00:51:41", "url": "https://files.pythonhosted.org/packages/17/7a/2752ab60204b563849d1d3e7c86540f9de004d58e248de1d9d3bc1455ece/django_emulate_aws_env-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "143fe6ceafe1d8b251aa2f2394c5fd82", "sha256": "ac0671de117901165b874454a0fb4e8f79aa7022d1b2312cf0e8674433c4cdb4" }, "downloads": -1, "filename": "django-emulate-aws-env-0.2.0.tar.gz", "has_sig": false, "md5_digest": "143fe6ceafe1d8b251aa2f2394c5fd82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2017-06-01T00:51:36", "url": "https://files.pythonhosted.org/packages/2c/97/7d8dce231f6fd898ff0ede28bd7829f2b11442c39f5e7250703154fd54e7/django-emulate-aws-env-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "80ad5b4694725bc7e5fb074966a79b4a", "sha256": "cc20f38505ff9a96749c671ef077ed1f02634df501e8f10628ed84ab83b885f2" }, "downloads": -1, "filename": "django_emulate_aws_env-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "80ad5b4694725bc7e5fb074966a79b4a", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5381, "upload_time": "2017-06-01T00:51:41", "url": "https://files.pythonhosted.org/packages/17/7a/2752ab60204b563849d1d3e7c86540f9de004d58e248de1d9d3bc1455ece/django_emulate_aws_env-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "143fe6ceafe1d8b251aa2f2394c5fd82", "sha256": "ac0671de117901165b874454a0fb4e8f79aa7022d1b2312cf0e8674433c4cdb4" }, "downloads": -1, "filename": "django-emulate-aws-env-0.2.0.tar.gz", "has_sig": false, "md5_digest": "143fe6ceafe1d8b251aa2f2394c5fd82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2017-06-01T00:51:36", "url": "https://files.pythonhosted.org/packages/2c/97/7d8dce231f6fd898ff0ede28bd7829f2b11442c39f5e7250703154fd54e7/django-emulate-aws-env-0.2.0.tar.gz" } ] }