{ "info": { "author": "William Mayor", "author_email": "mail@williammayor.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===============================\nFlask-Clacks\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/flask-clacks.svg\n :target: https://pypi.python.org/pypi/flask-clacks\n\n.. image:: https://img.shields.io/travis/WilliamMayor/flask-clacks.svg\n :target: https://travis-ci.org/WilliamMayor/flask-clacks\n\n.. image:: https://readthedocs.org/projects/flask-clacks/badge/\n :target: https://flask-clacks.readthedocs.io/en/latest/\n :alt: Documentation Status\n\nA man is not dead while his name is still spoken.\n\nThis is a very simple Flask extension that adds 'X-Clacks-Overhead' headers to\nyour website's responses.\n\n\n* Free software: MIT license\n* Documentation: https://flask-clacks.readthedocs.io.\n\n\nFeatures\n--------\n\nThis package exposes a Flask extension which by default adds the header\n``X-Clacks-Overhead: GNU Terry Pratchett`` on all routes, for all origins and\nmethods.\n\n* You can add extra names to your overhead\n* You can decorate individual routes to have the overhead\n\n\nInstallation\n------------\n\nInstall the extension with using pip, or easy\\_install.\n\n.. code:: console\n\n $ pip install -U flask-clacks\n\nUsage\n-----\n\nApply to all routes, sending only Terry Pratchett's name in the overhead.\n\n.. code:: python\n\n from flask import Flask\n from flask-clacks import Clacks\n\n app = Flask(__name__)\n Clacks(app)\n\n @app.route(\"/\")\n def index():\n # Will have the header added to the response\n return \"OK\"\n\nApply to all routes, sending Terry Pratchett and John Dearheart's names in the\noverhead.\n\n.. code:: python\n\n from flask import Flask\n from flask-clacks import Clacks\n\n app = Flask(__name__)\n Clacks(app, names=('John Dearheart', ))\n\n @app.route(\"/\")\n def index():\n # Will have the the clacks overhead header for both Terry and John\n return \"OK\"\n\n\nApply to specific routes, sending different names back on different responses.\n\n.. code:: python\n\n from flask import Flask\n from flask-clacks import clacks\n\n app = Flask(__name__)\n\n @app.route(\"/terry/\")\n @clacks\n def terry():\n # Will have a clacks overhead header for Terry\n return \"OK\"\n\n @app.route(\"/terry-and-john/\")\n @clacks(names=('John Dearheart', ))\n def terry_and_john():\n # Will have a clacks overhead header for both Terry and John\n return \"OK\"\n\n @app.route(\"/no-one/\")\n def no_one():\n # Will not have clacks overhead headers\n return \"OK\"\n\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\nThanks go to the `Flask-CORS`_ extension for providing decent examples of how to\npackage an extension.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _`Flask-CORS`: https://github.com/corydolphin/flask-cors\n\n\n=======\nHistory\n=======\n\n1.0.0 (2017-04-26)\n------------------\n\n* First release on PyPI.\n\n\n1.0.1 (2017-04-26)\n------------------\n\n* Learning how things like travis, PyPI, and tox work\n* Fixing small config things", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/WilliamMayor/flask-clacks", "keywords": "flask_clacks", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "flask-clacks", "package_url": "https://pypi.org/project/flask-clacks/", "platform": "any", "project_url": "https://pypi.org/project/flask-clacks/", "project_urls": { "Homepage": "https://github.com/WilliamMayor/flask-clacks" }, "release_url": "https://pypi.org/project/flask-clacks/1.0.1/", "requires_dist": [ "Flask", "Sphinx; extra == 'dev'", "flake8; extra == 'dev'", "pytest; extra == 'test'", "coverage; extra == 'test'", "tox; extra == 'test'" ], "requires_python": "", "summary": "A man is not dead while his name is still spoken.", "version": "1.0.1" }, "last_serial": 2833014, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f446aedf06fc24ffd6f36e5353712b80", "sha256": "a265df978a82e1be68c044869e894c7458df8906719df4c6131047f0c363e8b2" }, "downloads": -1, "filename": "flask_clacks-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f446aedf06fc24ffd6f36e5353712b80", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5079, "upload_time": "2017-04-26T21:14:09", "url": "https://files.pythonhosted.org/packages/70/6d/d08432d8cd2311af582189b3fc58bc5d11e182120625fa6ae0acf4734b1b/flask_clacks-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a7960ce988d733eb7d1f7c4d0842b98", "sha256": "bbd18c888c0196e54456f46a0427f340c969b1de9b4d86baade1a20daab77c19" }, "downloads": -1, "filename": "flask-clacks-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4a7960ce988d733eb7d1f7c4d0842b98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17338, "upload_time": "2017-04-26T21:14:12", "url": "https://files.pythonhosted.org/packages/a2/29/eca9cd611b73deb90ec577a003e1a3c923ddd89fabc6e2db7492cb32382b/flask-clacks-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a4e18c9a97730ddcf776522fbe2d8ac4", "sha256": "ed641435a22c7a9f3034123437a1d37fc275c20d4f0a0bdfb53bfcf3bc0a8e59" }, "downloads": -1, "filename": "flask_clacks-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a4e18c9a97730ddcf776522fbe2d8ac4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5091, "upload_time": "2017-04-26T21:34:47", "url": "https://files.pythonhosted.org/packages/8d/65/117c0786cf589c9fc58fb145d02099ebc667769b8ec3cd82e69750fe2f0c/flask_clacks-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d28d56d2e3cd6d43fdd0b4df3c7d528", "sha256": "2468f8e870749a382be220baf5407c68f9c51c8b7bf5f37fbc76a17fc531e432" }, "downloads": -1, "filename": "flask-clacks-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5d28d56d2e3cd6d43fdd0b4df3c7d528", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12840, "upload_time": "2017-04-26T21:34:48", "url": "https://files.pythonhosted.org/packages/1e/6f/59882c14441241b0b0f738db5f6e9e0945e6f3d74cf25312fe387d1ff9d7/flask-clacks-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a4e18c9a97730ddcf776522fbe2d8ac4", "sha256": "ed641435a22c7a9f3034123437a1d37fc275c20d4f0a0bdfb53bfcf3bc0a8e59" }, "downloads": -1, "filename": "flask_clacks-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a4e18c9a97730ddcf776522fbe2d8ac4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5091, "upload_time": "2017-04-26T21:34:47", "url": "https://files.pythonhosted.org/packages/8d/65/117c0786cf589c9fc58fb145d02099ebc667769b8ec3cd82e69750fe2f0c/flask_clacks-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d28d56d2e3cd6d43fdd0b4df3c7d528", "sha256": "2468f8e870749a382be220baf5407c68f9c51c8b7bf5f37fbc76a17fc531e432" }, "downloads": -1, "filename": "flask-clacks-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5d28d56d2e3cd6d43fdd0b4df3c7d528", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12840, "upload_time": "2017-04-26T21:34:48", "url": "https://files.pythonhosted.org/packages/1e/6f/59882c14441241b0b0f738db5f6e9e0945e6f3d74cf25312fe387d1ff9d7/flask-clacks-1.0.1.tar.gz" } ] }