{ "info": { "author": "Sean Pianka", "author_email": "pianka@eml.cc", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "Flask-Lambda2\n=============\n\nFlask-Lambda2 is a python package to add a compatibility layer between a\nFlask application and AWS Lambda for creating RESTful applications.\n\nThis package is `opinionated `_, in that \"it locks or guides you into [our] way of doing things\" or \"doesn't make it easy to diverse from [our] golden path.\"\n\nInstallation\n============\n\n.. code:: bash\n\n $ pip install flask-lambda2 \n\nRequirements\n------------\n\nThe main assumption here is that your project can comfortably and reasonably fit into a single endpoint, or you separate your Lambda functions to group certain, related API endpoints together.\n\nFirstly, ensure your Lambda `handler` is set to `project_api.app`, where `project_api` is the filename (excluding the `.py` extension) containing your project's API endpoint implementations and where `app` is the Flask instance (actually a `FlaskLambda` instance) with which you have added the URL rules onto.\n\nLastly, ensure that invokation convention from the location you plan to invoke the endpoints from roughly follows the calling convention shown below:\n\n.. code:: python\n\n import boto3\n\n\n client = boto3.client('lambda')\n client.invoke(FunctionName='project_api',\n InvocationType='RequestResponse',\n Payload=json.dumps({'route':'/users/',\n 'method':'get',\n 'token':'123abc'}))\n\n\nThat's it!\n\n\nTests\n-----\n\nTests are available in ``Flask-Lambda2/tests`` through invoking\n``test.py`` with ``python test.py``. Ensure all dependencies are\ninstalled through invoking ``pip install -r requirements.txt``.\n\nFunctional Examples\n-------------------\n\nGridLight-API\n~~~~~~~~~~~~~\n\nI have created a backend for a mobile application using this library,\nit's source code is available `here at the GridLight-API\nrepository `__.\n\nIf you have any questions, feel free to e-mail me at pianka@eml.cc.\n\n\nBuilt With\n----------\n\n- `Flask `__ - Micro web-framework\n based on Werkzeug and Jinja2\n\n\nLicense\n-------\n\nThis project is licensed under the Apache 2.0 License - see the\nLICENSE.md file for details\n\n\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/seanpianka/flask-lambda2", "keywords": "flask lambda aws api rest restful layer compatiblity endpoint", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flask-lambda2", "package_url": "https://pypi.org/project/flask-lambda2/", "platform": "", "project_url": "https://pypi.org/project/flask-lambda2/", "project_urls": { "Homepage": "https://github.com/seanpianka/flask-lambda2" }, "release_url": "https://pypi.org/project/flask-lambda2/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python package to add compatibility between Flask and AWS Lambda for creating RESTful applications.", "version": "2.0.0" }, "last_serial": 3667440, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "551ffb550b3189dc3707d1ee4029190d", "sha256": "44089c7700adcdcab24d7328fccb53ba92b5c92e08335d933b4bb3167d8f4fae" }, "downloads": -1, "filename": "flask_lambda2-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "551ffb550b3189dc3707d1ee4029190d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9131, "upload_time": "2017-09-01T02:39:30", "url": "https://files.pythonhosted.org/packages/3d/a3/2cb35ee4e29fc111246163a4ce06821a3abe4020574c7e48607304f13b33/flask_lambda2-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "467099fa547dd9bfe8b8f4eb3704e7b2", "sha256": "d1f789e115856268fde233e19e09611ac3020baa58e793ceb45ced906a6ab442" }, "downloads": -1, "filename": "flask-lambda2-1.0.0.tar.gz", "has_sig": false, "md5_digest": "467099fa547dd9bfe8b8f4eb3704e7b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6185, "upload_time": "2017-09-01T02:39:33", "url": "https://files.pythonhosted.org/packages/3b/e5/8effa5c074381db8bf03cf477723cff1c1bfd36d9acf85d4b653c44a1542/flask-lambda2-1.0.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "3fea2204f26cf76a77ebc0bd4c30c0b3", "sha256": "8ac78409668d8be9c1b31383baa110d9709febe63274d2c0c7eb330426e41f58" }, "downloads": -1, "filename": "flask_lambda2-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3fea2204f26cf76a77ebc0bd4c30c0b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5403, "upload_time": "2018-03-14T03:45:36", "url": "https://files.pythonhosted.org/packages/36/49/f67b0970590a8b136b206643240406bd438639da1ca41109b0038d40ed9b/flask_lambda2-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e174bd875233be53973a40131dc90925", "sha256": "887e7cbc11504511d87288bdef0dcbfa5c39aed187edbbe321d189f8e2cb1b98" }, "downloads": -1, "filename": "flask-lambda2-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e174bd875233be53973a40131dc90925", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3606, "upload_time": "2018-03-14T03:45:38", "url": "https://files.pythonhosted.org/packages/b3/a7/3f97356b529f39fb07db863fdc646b543f9e38e9fe87024ae6beca5d5cec/flask-lambda2-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3fea2204f26cf76a77ebc0bd4c30c0b3", "sha256": "8ac78409668d8be9c1b31383baa110d9709febe63274d2c0c7eb330426e41f58" }, "downloads": -1, "filename": "flask_lambda2-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3fea2204f26cf76a77ebc0bd4c30c0b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5403, "upload_time": "2018-03-14T03:45:36", "url": "https://files.pythonhosted.org/packages/36/49/f67b0970590a8b136b206643240406bd438639da1ca41109b0038d40ed9b/flask_lambda2-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e174bd875233be53973a40131dc90925", "sha256": "887e7cbc11504511d87288bdef0dcbfa5c39aed187edbbe321d189f8e2cb1b98" }, "downloads": -1, "filename": "flask-lambda2-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e174bd875233be53973a40131dc90925", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3606, "upload_time": "2018-03-14T03:45:38", "url": "https://files.pythonhosted.org/packages/b3/a7/3f97356b529f39fb07db863fdc646b543f9e38e9fe87024ae6beca5d5cec/flask-lambda2-2.0.0.tar.gz" } ] }