{ "info": { "author": "Jonathan Eunice", "author_email": "jonathan.eunice@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "fireflask\n=========\n\nI've long wanted to use `FirePython\n`_ for debugging `Flask\n`_ web apps, but could never seem to get it working\nright.\n\nAfter a long time away, I circled back to it, and `with help from the Flask\nfolks `_, got it working\nsmoothly.\n\nIndeed, it was so simple to do, knowing the right invocation and\nconfiguration, that I can only blame myself for not getting it earlier. My\nonly consolation is that there is no real documentation (the usage link on\nFireLogger's home page is a dead link).\n\nSo, having figured it out, I'm sharing in the hopes that others\ncan now simply use this beautiful tool.\n\n.. image:: http://content.screencast.com/users/jonathaneunice/folders/Jing/media/ca71bb7a-e383-4607-a66a-12a27f18208e/00000330.png\n :align: center\n\n\nBasic Idea\n==========\n\nThe code is sufficiently simple I can put the core of it here::\n\n from flask import Flask\n from logging import DEBUG\n from firepython.middleware import FirePythonWSGI, logging\n\n app = Flask('appname')\n app.wsgi_app = FirePythonWSGI(app.wsgi_app)\n logging.getLogger().setLevel(DEBUG)\n\nThat's it. Now you're off to the races. When the app server is run,\nany logging messages you direct to the ``logging`` object end up\nin your FireBug / FireLogger console. More complete versions of this\ndemo code can be found in ``trivial.py`` and ``demo_primitive.py``\nin the repository.\n\nFireFlask\n=========\n\nTo make things even simpler, the ``fireflask`` module requires just\ntwo lines of code (one to import ``fireflask``, and one to put it\ninto operation). ::\n\n from flask import Flask\n from fireflask import *\n\n app = Flask('appname')\n FireFlask(app)\n\n @app.route('/')\n def hello_world():\n\n logging.info('serving hello_world content')\n return 'Hello World!'\n\n app.run()\n\nHere we've completed the program with a function that provides\ncontent, and the startup code for the Flask web server.\n``fireflask`` isn't a huge lines-of-code\nsavings, but it will save you a few steps\nand make the program cleaner.\n\nNotes\n=====\n\n * This has been tested under Python 2.7. No promises are made\n for other versions of Python.\n\n * The author, `Jonathan Eunice `_ or\n `@jeunice on Twitter `_\n welcomes your comments and suggestions.\n\nInstallation\n============\n\nTo install or upgrade to the latest version of ``fireflask``::\n\n pip install -U fireflask\n\nThis will install the ``firepython`` module automatically.\nOr, if you want to use just the primitive approach::\n\n pip install -U firepython\n\n(You may need to prefix these with ``sudo`` to authorize installation.)\n\nUse the standard Firefox tools to install FireBug and the\nFireLogger extension.\n\nUse\n===\n\nTo run the demonstration programs, run\n``trivial.py``, ``demo_primitive.py`` or ``demo.py``.\n\nBrowse to ``127.0.0.1:5000`` in Firefox, with the FireBug extension\nturned on, and the Logger pane visible. This is the FireBug icon:\n\n.. image:: http://content.screencast.com/users/jonathaneunice/folders/Jing/media/795cbb0a-aa03-4d01-993f-4a1e4e2ce427/00000329.png\n :align: center\n\nWhen FireBug is operational, it's displayed in color, not grayed\nout. If you browse to the page before FireBug is turned on, you'll\nneed to reload the page to see the logged messages.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/jeunice/fireflask", "keywords": "webapp Flask debug log logging FireBug FireLogger FirePython", "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "fireflask", "package_url": "https://pypi.org/project/fireflask/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fireflask/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/jeunice/fireflask" }, "release_url": "https://pypi.org/project/fireflask/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Simple, beautiful logging from Flask web apps to FireBug console", "version": "0.2.0" }, "last_serial": 1679940, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8b93538ca98c621bc0ced671c6ee2c47", "sha256": "49168054a0d1fae715491fd80b5195c6bddd53189666cceb2a54ee7b13d3f924" }, "downloads": -1, "filename": "fireflask-0.1.tar.gz", "has_sig": false, "md5_digest": "8b93538ca98c621bc0ced671c6ee2c47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3206, "upload_time": "2014-06-10T20:46:02", "url": "https://files.pythonhosted.org/packages/38/b3/52470a87a07f9b0503a7715cb04cfe688ca0fa003d0e43b9155ee4c4761c/fireflask-0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "ff984008c98877b1d813d51ece3514b8", "sha256": "2696828c5cbc2091fa44cc9c14ebf3d330ca12d64655ebe0db2d18590d98bb86" }, "downloads": -1, "filename": "fireflask-0.1.zip", "has_sig": false, "md5_digest": "ff984008c98877b1d813d51ece3514b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6762, "upload_time": "2014-06-10T20:46:00", "url": "https://files.pythonhosted.org/packages/40/b5/f399c01f8c2196eccebfa345ed891f6d46764db5ff16be8a3c7a09223760/fireflask-0.1.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "45f9529bcbeea6250497944beaa8ab18", "sha256": "c4a25407d86742dcbe013a623044a577439a429b742e5697d70c23a51b886eed" }, "downloads": -1, "filename": "fireflask-0.1.1.tar.gz", "has_sig": false, "md5_digest": "45f9529bcbeea6250497944beaa8ab18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3211, "upload_time": "2014-06-10T20:49:17", "url": "https://files.pythonhosted.org/packages/e6/51/717aad911366957c47e65ad77c5ddcf180b59f6585e801b24be9ec8a725b/fireflask-0.1.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "da2c86203b4bb5a23fb8bae0410438d0", "sha256": "5b8ac6d7488f2d9ae4ded2fae96868c4f77c62d4bca902f8060579f708b8dc58" }, "downloads": -1, "filename": "fireflask-0.1.1.zip", "has_sig": false, "md5_digest": "da2c86203b4bb5a23fb8bae0410438d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6798, "upload_time": "2014-06-10T20:49:14", "url": "https://files.pythonhosted.org/packages/ad/e6/750c9e11f7be9d5f7a537fd1273f88fde826397dd53807de02e13cd5972b/fireflask-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "40c5230a21e8697fa59e2cef76801cb0", "sha256": "71324336f916a023b266c87f151ad219464f3982f9dc20b847a6ca8a84b7d91b" }, "downloads": -1, "filename": "fireflask-0.1.2.tar.gz", "has_sig": false, "md5_digest": "40c5230a21e8697fa59e2cef76801cb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3284, "upload_time": "2014-06-10T20:56:53", "url": "https://files.pythonhosted.org/packages/5a/9e/d7402bda1c0fb848545e4022214365f51376df59b717439d06850246b20c/fireflask-0.1.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "8c8a0e1a0d0496727e623cc095216215", "sha256": "66833222a6cec8e0d1d222b995d47c41f8a18980d0fe9a990495cfbc1da33894" }, "downloads": -1, "filename": "fireflask-0.1.2.zip", "has_sig": false, "md5_digest": "8c8a0e1a0d0496727e623cc095216215", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6940, "upload_time": "2014-06-10T20:56:51", "url": "https://files.pythonhosted.org/packages/be/04/003e4e31a9d611cafb9061a2df29cb9c0a93c3e85d2e17a8a94d40507be6/fireflask-0.1.2.zip" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4eca254d81ba457fdf4076d24fe076bc", "sha256": "1c8c5ccbbd21c377d210b4ca8cd7b2c5c5f7523e4680bcf7ec3ffc3b4275c98b" }, "downloads": -1, "filename": "fireflask-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4eca254d81ba457fdf4076d24fe076bc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6017, "upload_time": "2015-08-17T02:20:20", "url": "https://files.pythonhosted.org/packages/8d/8a/c0bbee7c7c2f5bf42a708a7649b5712fe3d34b4306d41f0ea08a30fa9ae7/fireflask-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "374f3f2d881ae1505eb95be85239e404", "sha256": "0d6318741010c9551dd480872c9483dab8598b2dc53d28b3e5123acec42262ba" }, "downloads": -1, "filename": "fireflask-0.2.0.tar.gz", "has_sig": false, "md5_digest": "374f3f2d881ae1505eb95be85239e404", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3620, "upload_time": "2015-08-17T02:20:16", "url": "https://files.pythonhosted.org/packages/dc/f2/9bbf8d743ce4116e99a4ffcf40a9cb1889d4a4eb52cc44fedfe1dbd0663c/fireflask-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "a6df2f62a90b220f3a7dfcbef4e4d14f", "sha256": "b0e7a8cf1d2d5c121100a086ed9940ab6364e6ddf1aa59ef2eff2f9de3467b53" }, "downloads": -1, "filename": "fireflask-0.2.0.zip", "has_sig": false, "md5_digest": "a6df2f62a90b220f3a7dfcbef4e4d14f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8731, "upload_time": "2015-08-17T02:20:12", "url": "https://files.pythonhosted.org/packages/03/e5/7bb055383772cea9ac959a55e5042f3d3ed513ac65e5c718fe270a2a309e/fireflask-0.2.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4eca254d81ba457fdf4076d24fe076bc", "sha256": "1c8c5ccbbd21c377d210b4ca8cd7b2c5c5f7523e4680bcf7ec3ffc3b4275c98b" }, "downloads": -1, "filename": "fireflask-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4eca254d81ba457fdf4076d24fe076bc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6017, "upload_time": "2015-08-17T02:20:20", "url": "https://files.pythonhosted.org/packages/8d/8a/c0bbee7c7c2f5bf42a708a7649b5712fe3d34b4306d41f0ea08a30fa9ae7/fireflask-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "374f3f2d881ae1505eb95be85239e404", "sha256": "0d6318741010c9551dd480872c9483dab8598b2dc53d28b3e5123acec42262ba" }, "downloads": -1, "filename": "fireflask-0.2.0.tar.gz", "has_sig": false, "md5_digest": "374f3f2d881ae1505eb95be85239e404", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3620, "upload_time": "2015-08-17T02:20:16", "url": "https://files.pythonhosted.org/packages/dc/f2/9bbf8d743ce4116e99a4ffcf40a9cb1889d4a4eb52cc44fedfe1dbd0663c/fireflask-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "a6df2f62a90b220f3a7dfcbef4e4d14f", "sha256": "b0e7a8cf1d2d5c121100a086ed9940ab6364e6ddf1aa59ef2eff2f9de3467b53" }, "downloads": -1, "filename": "fireflask-0.2.0.zip", "has_sig": false, "md5_digest": "a6df2f62a90b220f3a7dfcbef4e4d14f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8731, "upload_time": "2015-08-17T02:20:12", "url": "https://files.pythonhosted.org/packages/03/e5/7bb055383772cea9ac959a55e5042f3d3ed513ac65e5c718fe270a2a309e/fireflask-0.2.0.zip" } ] }