{ "info": { "author": "Kunal Mehta", "author_email": "legoktm@member.fsf.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "flask-dataapi\n=============\n\nAutomatically generate data APIs for your Flask routes, with very little\neffort on your part. It should integrate into your existing application with\nvery few changes required.\n\nUsage\n-----\n\nGiven the following code::\n\n from flask import Flask\n\n app = Flask(__name__)\n\n @app.route('/foo')\n def foo():\n return render_template('foo.html', foo='bar', baz='boo')\n\nWe can automatically generate API functions for this route, rather simply::\n\n from flask import Flask\n from flask_dataapi import DataApi\n\n app = Flask(__name__)\n api = DataApi(app)\n\n @api.route('/foo')\n def foo(render_template):\n return render_template('foo.html', foo='bar', baz='boo')\n\nThere are only two changes made. First, we call ``api.route`` for the\ndecorator, and second, the first argument to the view function is the\n``render_template`` function that we'll call.\n\nThis will automatically add a second route of ``/foo.json`` that outputs\nJSON of the data that was provided to ``render_template``. The route will\nhave a name of ``foo_api``, so links or other references will use that name,\ne.g. ``url_for('foo_api')``.\n\nMotivation\n----------\nIn addition to free code, we also need free data. This makes it trivial to\nensure that all data presented to users is easily extractable by the user.\n\nLicense\n-------\nflask-dataapi is available under the terms of the AGPL, version 3 or any later\nversion.\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://git.legoktm.com/legoktm/flask-dataapi", "keywords": "", "license": "AGPL-3.0-or-later", "maintainer": "", "maintainer_email": "", "name": "flask-dataapi", "package_url": "https://pypi.org/project/flask-dataapi/", "platform": "", "project_url": "https://pypi.org/project/flask-dataapi/", "project_urls": { "Homepage": "https://git.legoktm.com/legoktm/flask-dataapi" }, "release_url": "https://pypi.org/project/flask-dataapi/0.2.0/", "requires_dist": [ "flask" ], "requires_python": ">=3.4", "summary": "Automatically generate data APIs for your Flask routes", "version": "0.2.0" }, "last_serial": 5594520, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1f9f99cf376ebbe5841e15132d474e5f", "sha256": "fac05e2dfdf067b211939f0edbb26531b8913e9fb8b1cfc104f198d0a449c8e2" }, "downloads": -1, "filename": "flask_dataapi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1f9f99cf376ebbe5841e15132d474e5f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 2307, "upload_time": "2019-07-28T00:28:21", "url": "https://files.pythonhosted.org/packages/b8/93/b9a3a751b532a5ac2d8568c0fb2380f493679373bb6ef52a519f0143fcdc/flask_dataapi-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d344bfd6d6f5d615db84686cfa3458c6", "sha256": "a461125e425170d703bb2daed022e2a73ab3b8dd4e28e898e8e48bf8468839bb" }, "downloads": -1, "filename": "flask_dataapi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d344bfd6d6f5d615db84686cfa3458c6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2372, "upload_time": "2019-07-28T00:28:24", "url": "https://files.pythonhosted.org/packages/31/75/fb4f69195134861fee7d69dc2254db6bc9d3cffedb92b73ae3f2b1348675/flask_dataapi-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c06658a588c5c5fcb497ea2b4c1edeb0", "sha256": "0f3ef1bb3f28f27897169792c87963b511056aee0996187464bc556d3ac47efe" }, "downloads": -1, "filename": "flask_dataapi-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c06658a588c5c5fcb497ea2b4c1edeb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 14861, "upload_time": "2019-07-28T01:48:08", "url": "https://files.pythonhosted.org/packages/70/17/794f31f0d958cbbfb5a46ded6be818d498386587e0b74c4bcf121fa89378/flask_dataapi-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "300b80a95637a0361136f9572670e7d5", "sha256": "cbd57031437aaef24bd881e7440c5a76d4a2eb0ea2e9a3b641f7769379addfaf" }, "downloads": -1, "filename": "flask_dataapi-0.2.0.tar.gz", "has_sig": false, "md5_digest": "300b80a95637a0361136f9572670e7d5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 14158, "upload_time": "2019-07-28T01:48:10", "url": "https://files.pythonhosted.org/packages/de/e6/4e8325172548dd93754bad985730ef004e4454a60c39675b772b2f5de54d/flask_dataapi-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c06658a588c5c5fcb497ea2b4c1edeb0", "sha256": "0f3ef1bb3f28f27897169792c87963b511056aee0996187464bc556d3ac47efe" }, "downloads": -1, "filename": "flask_dataapi-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c06658a588c5c5fcb497ea2b4c1edeb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 14861, "upload_time": "2019-07-28T01:48:08", "url": "https://files.pythonhosted.org/packages/70/17/794f31f0d958cbbfb5a46ded6be818d498386587e0b74c4bcf121fa89378/flask_dataapi-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "300b80a95637a0361136f9572670e7d5", "sha256": "cbd57031437aaef24bd881e7440c5a76d4a2eb0ea2e9a3b641f7769379addfaf" }, "downloads": -1, "filename": "flask_dataapi-0.2.0.tar.gz", "has_sig": false, "md5_digest": "300b80a95637a0361136f9572670e7d5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 14158, "upload_time": "2019-07-28T01:48:10", "url": "https://files.pythonhosted.org/packages/de/e6/4e8325172548dd93754bad985730ef004e4454a60c39675b772b2f5de54d/flask_dataapi-0.2.0.tar.gz" } ] }