{ "info": { "author": "Cory Dolphin", "author_email": "corydolph.in@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Jsonpify\n==============\n\nFlask-Jsonpify is an extension to Flask's core jsonify function,\nreturning JSON-Padded responses when a callback is specified as\nrequest's arguments. It's usage and implementation is the same as\nflask.jsonify, differing only when a request has a ``callback``\nspecified in the request arguments, in which case the response body is\nJSON-Padded, or JSONP, using the callback.\n\nTo add JSONP support to all routes which previously used flask.jsonify,\nsimply import jsonify from flask.ext.jsonpify instead of importing it\nfrom flask. The arguments and responses are fully compatible.\nAlternatively, import jsonpify from flask.ext.jsonpify to support JSONP\nin certain places.\n\nInstallation\n------------\n\nInstall the extension with one of the following commands:\n\n.. code:: bash\n\n $ easy_install flask-jsonpify\n\nor alternatively if you have pip installed (which you should):\n\n.. code:: bash\n\n $ pip install flask-jsonpify\n\nUsage\n-----\n\nThe best way to use Flask-Jsonpify is to completely replace Flask's\njsonify with this module's jsonify function, as shown below. The method\nis fully compatible.\n\n.. code:: Python\n\n from flask import Flask\n from flask.ext.jsonpify import jsonify\n\n app = Flask(__name__)\n\n @app.route(\"/\")\n def index():\n return jsonify(user=\"lala\")\n\n\n if __name__ == \"__main__\":\n app.run(debug=True)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CoryDolphin/flask-jsonpify", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Flask-Jsonpify", "package_url": "https://pypi.org/project/Flask-Jsonpify/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Jsonpify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/CoryDolphin/flask-jsonpify" }, "release_url": "https://pypi.org/project/Flask-Jsonpify/1.5.0/", "requires_dist": null, "requires_python": null, "summary": "A Flask extension adding a decorator for JSONP support", "version": "1.5.0" }, "last_serial": 1420315, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "f009ac4ef1376861e1a9839687bc8bb6", "sha256": "33e9765835d8d3502552a7c14d17ce8e58f8379ef965e645bed11bb7bbadd3bc" }, "downloads": -1, "filename": "Flask-Jsonpify-1.0.win32.exe", "has_sig": false, "md5_digest": "f009ac4ef1376861e1a9839687bc8bb6", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 199531, "upload_time": "2013-01-23T20:21:54", "url": "https://files.pythonhosted.org/packages/9e/3b/55218286c1cbe42b24ad8bb1fa30ff17ac65fa24a452b3173586f66f2658/Flask-Jsonpify-1.0.win32.exe" }, { "comment_text": "", "digests": { "md5": "8f0f13ef6cd4fa15593f2e8dcc965f81", "sha256": "84db3f40b5f21dbe8a8ce6b426fbf6421ebddfb64d0d4e3b7cf1551048f49c2a" }, "downloads": -1, "filename": "Flask-Jsonpify-1.0.zip", "has_sig": false, "md5_digest": "8f0f13ef6cd4fa15593f2e8dcc965f81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4121, "upload_time": "2013-01-23T20:21:50", "url": "https://files.pythonhosted.org/packages/60/da/041dfd9bc00de2c290618bc1587dbe401568279958d65113b428c49d4657/Flask-Jsonpify-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "f08cc41236a23759be10789fd9ebd76c", "sha256": "6c70e74da34d13e434e1596a871c872410d276256d2c910555f953ce48df2962" }, "downloads": -1, "filename": "Flask-Jsonpify-1.1.tar.gz", "has_sig": false, "md5_digest": "f08cc41236a23759be10789fd9ebd76c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2186, "upload_time": "2013-07-05T21:15:36", "url": "https://files.pythonhosted.org/packages/0e/ca/381b7d32f4790876cc57495166c0b2e18d55d479fa52a8613db5f666cdff/Flask-Jsonpify-1.1.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "9c4523ded80f1fd2e8b4f1918c486621", "sha256": "a54cd3f4641e24ad06c5a33616e182d1eac51c599edf94b76b905859d413c4e5" }, "downloads": -1, "filename": "Flask-Jsonpify-1.3.tar.gz", "has_sig": false, "md5_digest": "9c4523ded80f1fd2e8b4f1918c486621", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2196, "upload_time": "2014-03-06T16:35:56", "url": "https://files.pythonhosted.org/packages/45/8f/7f6cc27a694e6b596b9938ab65ca3d1a465efc9fa18cfda45de746d6292c/Flask-Jsonpify-1.3.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "8a10e37942c43d93d107644a3fe77d98", "sha256": "8ac4c732aa5b11d9f6c2de58065d3b669f139518ca8f529bce943817e2fedbfb" }, "downloads": -1, "filename": "Flask-Jsonpify-1.5.0.tar.gz", "has_sig": false, "md5_digest": "8a10e37942c43d93d107644a3fe77d98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2974, "upload_time": "2015-02-12T05:46:44", "url": "https://files.pythonhosted.org/packages/60/0f/c389dea3988bffbe32c1a667989914b1cc0bce31b338c8da844d5e42b503/Flask-Jsonpify-1.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8a10e37942c43d93d107644a3fe77d98", "sha256": "8ac4c732aa5b11d9f6c2de58065d3b669f139518ca8f529bce943817e2fedbfb" }, "downloads": -1, "filename": "Flask-Jsonpify-1.5.0.tar.gz", "has_sig": false, "md5_digest": "8a10e37942c43d93d107644a3fe77d98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2974, "upload_time": "2015-02-12T05:46:44", "url": "https://files.pythonhosted.org/packages/60/0f/c389dea3988bffbe32c1a667989914b1cc0bce31b338c8da844d5e42b503/Flask-Jsonpify-1.5.0.tar.gz" } ] }