{ "info": { "author": "AberSheeran", "author_email": "abersheeran@qq.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6" ], "description": "\n# aligi\n\n\u4e3a\u65e0\u670d\u52a1\u51fd\u6570\u8ba1\u7b97\u4f5c\u4e3a\u963f\u91cc\u4e91 API \u540e\u7aef\u8fd0\u884c\u63d0\u4f9b\u8f6c\u6790\u3002\n\n## \u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e2a\u5e93\uff1f\n\n\u4f7f\u7528 Flask\uff0cDjango \u7b49\u652f\u6301\u6807\u51c6 WSGI \u534f\u8bae\u7684 Web \u6846\u67b6\u521b\u5efa\u65e0\u670d\u52a1\u51fd\u6570\u65f6\uff0c\u4f7f\u7528HTTP\u89e6\u53d1\u5668\u624d\u80fd\u8ba9\u5b83\u4eec\u6b63\u5e38\u8fd0\u884c\u3002\n\n\u4f46\u5982\u679c\u60f3\u4f7f\u7528\u65e0\u670d\u52a1\u51fd\u6570\u4f5c\u4e3a\u963f\u91cc\u4e91 API \u7f51\u5173\u7684\u540e\u7aef\u65f6\uff0c\u5219\u65e0\u6cd5\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\uff0c\u53ea\u80fd\u901a\u8fc7\u7f51\u7edc\u8c03\u7528\uff0c\u8fd9\u663e\u7136\u662f\u4e0d\u591f\u9ad8\u6548\u3001\u5e76\u4e14\u8d39\u94b1\u7684\u3002\n\n## \u5982\u4f55\u5b89\u88c5\n\n\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u6267\u884c\n\n```\npip install -t . aligi\n```\n\n## \u5982\u4f55\u4f7f\u7528\n\n\u4ee5\u4e0b\u4e3a\u4e00\u4e2a\u6700\u5c0f\u7684 Flask \u6837\u4f8b\n\n```python\nimport json\n\nfrom flask import Flask\nfrom aligi.wsgi import WSGI\nfrom aligi.types import FCContext\n\napp = Flask(__name__)\n\n\n@app.route('/')\ndef hello_world():\n return 'Hello, World!'\n\n\ndef handler(event: str, context: FCContext):\n \"\"\"\u963f\u91cc\u4e91\u65e0\u670d\u52a1\u51fd\u6570\u7684\u5165\u53e3\"\"\"\n wsgi = WSGI(event, context)\n wsgi.mount(app)\n return wsgi.get_response()\n```\n\n\u5176\u4e2d`app`\u53ef\u4ee5\u662f\u4efb\u610f\u4e00\u4e2a\u6807\u51c6 WSGI Application\u3002\n\n\u5728 Django \u9879\u76ee\u4e2d\uff0c\u5b83\u4e00\u822c\u5728\u9879\u76ee\u7684`wsgi.py`\u91cc\u3002\n\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/abersheeran/aligi", "keywords": "aliyun,api,serverless,python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "aligi", "package_url": "https://pypi.org/project/aligi/", "platform": "", "project_url": "https://pypi.org/project/aligi/", "project_urls": { "Homepage": "https://github.com/abersheeran/aligi" }, "release_url": "https://pypi.org/project/aligi/0.0.1/", "requires_dist": null, "requires_python": ">=3.6.0", "summary": "\u4e3a\u963f\u91cc\u65e0\u670d\u52a1\u51fd\u6570\u63d0\u4f9bAPI\u7f51\u5173\u7684\u534f\u8bae\u89e3\u6790", "version": "0.0.1" }, "last_serial": 5661211, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "748c3acda40ec420b33771cd3edb0805", "sha256": "ddb37cf7935a412de90c7eed7b75756ed8fb26b4e9ce230d50636a141271acc2" }, "downloads": -1, "filename": "aligi-0.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "748c3acda40ec420b33771cd3edb0805", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4623, "upload_time": "2019-08-09T17:17:08", "url": "https://files.pythonhosted.org/packages/a5/cf/9953e08af7dfd07192f5226649f7c60abeb18148376ba244308ae62731c7/aligi-0.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "09cc2542e41a686573bf66fa1cfa9746", "sha256": "2af67a77985bc355d98543469a0c2449535f6132644d8a2716c2b8316d087fad" }, "downloads": -1, "filename": "aligi-0.0.0.tar.gz", "has_sig": false, "md5_digest": "09cc2542e41a686573bf66fa1cfa9746", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 4013, "upload_time": "2019-08-09T17:17:13", "url": "https://files.pythonhosted.org/packages/8e/46/8bfcd29af1b79fe33d706c9daa7c64b6b56263e972b5318996a0222c4f25/aligi-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "757bbbfc3e5343e26527113012d30b04", "sha256": "2c04f10d7316c85ef63a31e99ab1e251d2d295f7cfeb8d8196c89fcf122214bc" }, "downloads": -1, "filename": "aligi-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "757bbbfc3e5343e26527113012d30b04", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5778, "upload_time": "2019-08-11T07:08:12", "url": "https://files.pythonhosted.org/packages/72/64/7a8b2c9be6cb6afeb36b4ec05a615473d3e5a69b0e83a143f105802381d8/aligi-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac1a29835f12a15d48fe49266152fc61", "sha256": "003227cc0e065c3a432dbf6f718d64919f0521bf66d5ccf5d83fdc9b4b91ce9e" }, "downloads": -1, "filename": "aligi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ac1a29835f12a15d48fe49266152fc61", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5146, "upload_time": "2019-08-11T07:08:14", "url": "https://files.pythonhosted.org/packages/da/90/f07d4a8dce3104aba772e4712afb0bf7eb35cfe7bc5056a63bc6008cb101/aligi-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "757bbbfc3e5343e26527113012d30b04", "sha256": "2c04f10d7316c85ef63a31e99ab1e251d2d295f7cfeb8d8196c89fcf122214bc" }, "downloads": -1, "filename": "aligi-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "757bbbfc3e5343e26527113012d30b04", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5778, "upload_time": "2019-08-11T07:08:12", "url": "https://files.pythonhosted.org/packages/72/64/7a8b2c9be6cb6afeb36b4ec05a615473d3e5a69b0e83a143f105802381d8/aligi-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac1a29835f12a15d48fe49266152fc61", "sha256": "003227cc0e065c3a432dbf6f718d64919f0521bf66d5ccf5d83fdc9b4b91ce9e" }, "downloads": -1, "filename": "aligi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ac1a29835f12a15d48fe49266152fc61", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5146, "upload_time": "2019-08-11T07:08:14", "url": "https://files.pythonhosted.org/packages/da/90/f07d4a8dce3104aba772e4712afb0bf7eb35cfe7bc5056a63bc6008cb101/aligi-0.0.1.tar.gz" } ] }