{ "info": { "author": "Juan Matthys Uys", "author_email": "opyate+flaskpushrod@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Pushrod\n=============\n\n.. image:: https://secure.travis-ci.org/UYSio/Flask-Pushrod.png\n :alt: Build Status\n :target: http://travis-ci.org/UYSio/Flask-Pushrod\n\nFlask-Pushrod is a simple helper for Flask for doing content negotiation (primarily for running the API and the website on the same code-base, with as little separate handling as possible).\n\nInstallation\n------------\n\nFlask-Pushrod is available on PyPI, so to install the latest stable version simply run\n\n::\n\n pip install Flask-Pushrod\n\nor\n\n::\n\n easy_install Flask-Pushrod\n\nUsage\n-----\n\nA simple hello world app in Pushrod would look like this::\n\n\tfrom flask import Flask, render_template\n\tfrom flask.ext.pushrod import Pushrod, pushrod_view\n\n\timport random\n\n\n\tapp = Flask(__name__)\n\tPushrod(app)\n\n\n\t@app.route(\"/\")\n\t@pushrod_view(jinja_template=\"hello.html\")\n\tdef hello():\n\t return {\n\t 'greeting': random.choice((\"Hi\", \"Heya\"))\n\t }\n\n\tif __name__ == \"__main__\":\n\t app.run()\n\nThis would, depending on the request, return either the greeting message in JSON or render it through the Jinja2 `hello.html` template.\n\nTests\n-----\n\n::\n\n$ tox\n\n\nDocumentation\n-------------\n\nMore advanced documentation `is available on Read The Docs `_.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/UYSio/flask-pushrod", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Flask-Pushrod", "package_url": "https://pypi.org/project/Flask-Pushrod/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Pushrod/", "project_urls": { "Homepage": "http://github.com/UYSio/flask-pushrod" }, "release_url": "https://pypi.org/project/Flask-Pushrod/0.3/", "requires_dist": null, "requires_python": null, "summary": "Views for your API", "version": "0.3" }, "last_serial": 1624160, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f93b222b448fe8851578ea498ca09fe8", "sha256": "cfffec8e7a898afb41e827ca43eaecdd792dd291c1c595170766c1af89f446ef" }, "downloads": -1, "filename": "Flask-Pushrod-0.1.zip", "has_sig": false, "md5_digest": "f93b222b448fe8851578ea498ca09fe8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13854, "upload_time": "2012-10-18T16:45:47", "url": "https://files.pythonhosted.org/packages/6d/a7/8e43dbaa6b3076eb3197a220f775f899a39e2382caf4efc7671d163bde55/Flask-Pushrod-0.1.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e0910b90cea27f6b3e2c25b37e79481f", "sha256": "fa6c8625426b28eafd7dab1d8db1fea6eec62a437fe749a2e8aab01426c3fd91" }, "downloads": -1, "filename": "Flask-Pushrod-0.1.1.zip", "has_sig": false, "md5_digest": "e0910b90cea27f6b3e2c25b37e79481f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13927, "upload_time": "2012-10-18T16:54:56", "url": "https://files.pythonhosted.org/packages/24/0e/ca027ee738c4e05a1fd67f57635ef1dc4d7ab00a3981b82cf49447f97cb9/Flask-Pushrod-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "82187a0dad9849293d029785cab787ed", "sha256": "802affe8a17e82ef85d6536e3b223a49fa4914de31c5c9fc64db7d1d1addc5d5" }, "downloads": -1, "filename": "Flask-Pushrod-0.1.2.zip", "has_sig": false, "md5_digest": "82187a0dad9849293d029785cab787ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14956, "upload_time": "2012-10-18T20:57:18", "url": "https://files.pythonhosted.org/packages/2d/b4/6084db8b8171b64982fe2a6c59cc68d8cbb1c188b73f72bfce8d8c054079/Flask-Pushrod-0.1.2.zip" } ], "0.1.dev": [], "0.2.dev": [], "0.3": [ { "comment_text": "", "digests": { "md5": "bf8ed4db5022b6bf492660493267f809", "sha256": "dcce96108e4b17d029646e7bc75e95c766a1ae80e4d9f1a30a34613cfffbbef7" }, "downloads": -1, "filename": "Flask_Pushrod-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "bf8ed4db5022b6bf492660493267f809", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13171, "upload_time": "2015-07-08T10:00:01", "url": "https://files.pythonhosted.org/packages/a3/bb/f8c36f12314ac63c360d85e9628e7de5fd79bf2f216a2692a7c91fcd2fd8/Flask_Pushrod-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6347a8e2993fa34ca9fb3fe03969b4e8", "sha256": "7174a51da3b1d0af4dca0360b3917f1a33ab79508a2897b37a42f94f51d038b2" }, "downloads": -1, "filename": "Flask-Pushrod-0.3.tar.gz", "has_sig": false, "md5_digest": "6347a8e2993fa34ca9fb3fe03969b4e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9356, "upload_time": "2015-07-08T09:59:58", "url": "https://files.pythonhosted.org/packages/cf/17/febcd0e774dd5c50c5db14b5db78a942ed1ba6a122c394292cb32e4f090b/Flask-Pushrod-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf8ed4db5022b6bf492660493267f809", "sha256": "dcce96108e4b17d029646e7bc75e95c766a1ae80e4d9f1a30a34613cfffbbef7" }, "downloads": -1, "filename": "Flask_Pushrod-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "bf8ed4db5022b6bf492660493267f809", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13171, "upload_time": "2015-07-08T10:00:01", "url": "https://files.pythonhosted.org/packages/a3/bb/f8c36f12314ac63c360d85e9628e7de5fd79bf2f216a2692a7c91fcd2fd8/Flask_Pushrod-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6347a8e2993fa34ca9fb3fe03969b4e8", "sha256": "7174a51da3b1d0af4dca0360b3917f1a33ab79508a2897b37a42f94f51d038b2" }, "downloads": -1, "filename": "Flask-Pushrod-0.3.tar.gz", "has_sig": false, "md5_digest": "6347a8e2993fa34ca9fb3fe03969b4e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9356, "upload_time": "2015-07-08T09:59:58", "url": "https://files.pythonhosted.org/packages/cf/17/febcd0e774dd5c50c5db14b5db78a942ed1ba6a122c394292cb32e4f090b/Flask-Pushrod-0.3.tar.gz" } ] }