{ "info": { "author": "Ralph Bean", "author_email": "ralph.bean@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware" ], "description": "`Raptorize` WSGI Middleware\n===========================\n\nFact: every WSGI app is better with a velociraptor.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. image:: https://github.com/ralphbean/raptorizemw/raw/master/raptorizemw/resources/raptor.png\n\nInstallation\n------------\n\nYou could install it yourself with `pip`::\n\n $ pip install raptorizemw\n\nOr you could add ``raptorizemw`` to the list of required packages in the\n``setup.py`` file of your project.\n\nUsage in Pyramid\n----------------\n\nEdit ``myapp/__init__.py`` and replace the ``return config.make_wsgi_app()``\nline with the following::\n\n import raptorizemw\n app = config.make_wsgi_app()\n app = raptorizemw.make_middleware(app)\n return app\n\nRestart your app, but watch out for raptors!\n\nUsage in Flask\n--------------\n\nEdit ``yourapp.py`` and replace the ``app.run()`` line with the following::\n\n import raptorizemw\n app.wsgi_app = raptorizemw.make_middleware(app.wsgi_app)\n app.run()\n\nZOMG!\n\nUsage in TurboGears 2\n---------------------\n\nSimply edit ``myapp/config/middleware.py`` and add the following to\n``make_app(...)``::\n\n # Wrap your base TurboGears 2 application with custom middleware here\n import raptorizemw\n app = raptorizemw.make_middleware(app)\n\n\nUsage in a PasteDeploy pipeline\n-------------------------------\n\nYou can also add raptors into your PasteDeploy pipeline like so::\n\n [pipeline:main]\n pipeline = \n raptorize\n my-app\n\n [filter:raptorize]\n use = egg:raptorizemw\n enterOn = konami-code\n delayTime = 3000\n random_chance = 0.25\n only_on_april_1st = True\n\n [app:myapp]\n ...\n\nEssentially, you're able to specify ``raportizemw`` as a filter within your\nWSGI pipeline, and configure options accordingly as per the `Configuration`_\nsection below.\n\nConfiguration\n-------------\n\n``make_middleware(...)`` and ``RaptorizeMiddleware.__init__(...)`` both take\na number of configuration keywords:\n\n - ``enterOn`` can be one of two actions: 'timer' or 'konami-code'. If 'timer'\n is specified, then the raptor is shown on page load. If 'konami-code', then\n the raptor is shown if the page-viewing user enters the sacred sequence.\n Default is 'timer'.\n - ``delayTime`` must be an ``int`` and is the number of milliseconds until the\n raptor is shown. Default is 2000.\n - ``random_chance`` must be a float between 0.0 and 1.0 representing a 'percent\n chance' to load the raptor. A value of 1.0 means the raptor will be injected\n every time; a value of 0.0 means it will never be injected; a value of 0.5\n will result in a 50% chance of raptors. Default is 1.0.\n - ``only_on_april_1st`` should be a ``bool`` value that will restrict raptors\n only to April Fool's day. The configuration will coerce Boolean-like strings\n (such as ``t``, ``true``, ``y``, ``yes``, ``on`` and ``1``) into a suitable\n format if provided in this manner (such as through a text-based pipeline\n configuration). Default is ``False``.\n\nFor example::\n\n app = raptorizemw.make_middleware(\n app,\n enterOn='konami-code',\n delayTime=500,\n random_chance=0.5,\n only_on_april_1st=True\n )\n\nwill result in 50% of pages loaded with raptors on April Fool's Day only. These\nraptors will only be displayed if the user also enters the konami code, and\nquite quickly, after only a half a second.\n\nCredits\n-------\n\nThis WSGI-fication of the raptorize jquery plugin was written\nby `Ralph Bean `_. Real credit goes to the people over at\nZURB who authored the `original jquery plugin\n`_.\n\nGet the source\n--------------\n\nThe code and bug tracker live over at http://github.com/ralphbean/raptorizemw.\nPlease fork and improve!", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/ralphbean/raptorizemw", "keywords": "raptor raptorize hilarity", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "raptorizemw", "package_url": "https://pypi.org/project/raptorizemw/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/raptorizemw/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/ralphbean/raptorizemw" }, "release_url": "https://pypi.org/project/raptorizemw/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Every WSGI app is better with a raptor.", "version": "0.2.1" }, "last_serial": 1312003, "releases": { "0.1.1dev": [ { "comment_text": "", "digests": { "md5": "f35cdf101ed10fa7145f1f35fee9b37d", "sha256": "b7a3b8f2f2b731013b2fdab83d7e3ab359e062e8a7dfa0ebeb01981dd42e8538" }, "downloads": -1, "filename": "raptorizemw-0.1.1dev.tar.gz", "has_sig": false, "md5_digest": "f35cdf101ed10fa7145f1f35fee9b37d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4416, "upload_time": "2011-10-01T19:00:03", "url": "https://files.pythonhosted.org/packages/18/68/8b4ae815aae25de298854a01e57c5ffee059b857b16dee0cd9ee240bcd7b/raptorizemw-0.1.1dev.tar.gz" } ], "0.1.2dev": [ { "comment_text": "", "digests": { "md5": "2b8fa7f5cac85a07b89a85be99f3a907", "sha256": "db9cf83a333a019a4e33a1c46660e158f9f8570b62ede2e4a8472892eee4181f" }, "downloads": -1, "filename": "raptorizemw-0.1.2dev.tar.gz", "has_sig": false, "md5_digest": "2b8fa7f5cac85a07b89a85be99f3a907", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431059, "upload_time": "2011-10-01T19:25:54", "url": "https://files.pythonhosted.org/packages/cc/af/c9b2d12b6bfd4c3c062d80dfb53cd61d0e21ff889d4acacae6d568499209/raptorizemw-0.1.2dev.tar.gz" } ], "0.1.3dev": [ { "comment_text": "", "digests": { "md5": "6cdfb6b210491c1785e2912a3e4836a2", "sha256": "442872cf89310e46a3f68add0ba33027d7eae561cecbf21797ef4ef71aaa2aed" }, "downloads": -1, "filename": "raptorizemw-0.1.3dev.tar.gz", "has_sig": false, "md5_digest": "6cdfb6b210491c1785e2912a3e4836a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431101, "upload_time": "2011-10-02T06:17:13", "url": "https://files.pythonhosted.org/packages/20/a3/e0ba2c5f15efe6d720e74f1ac960e26ee5913cac5c1827a05738cb4feb0e/raptorizemw-0.1.3dev.tar.gz" } ], "0.1.4dev": [ { "comment_text": "", "digests": { "md5": "8c38c55e0993722b22c76149b550df17", "sha256": "f242e1a374b6cab625e19408554ebb74914c034b690410cf2f6f7159339b907a" }, "downloads": -1, "filename": "raptorizemw-0.1.4dev.tar.gz", "has_sig": false, "md5_digest": "8c38c55e0993722b22c76149b550df17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431143, "upload_time": "2011-10-02T06:52:51", "url": "https://files.pythonhosted.org/packages/ac/63/4289506955793150a8b70d8b47f6cff69de7fcad431523977b2928bd2b62/raptorizemw-0.1.4dev.tar.gz" } ], "0.1.5dev": [ { "comment_text": "", "digests": { "md5": "b6e6044cd862e298eae6f283ed3db85d", "sha256": "2e4152eb1b1024d984e98ff63d02efa9c4e1b78cd38c09c9ff1444ef6c02571e" }, "downloads": -1, "filename": "raptorizemw-0.1.5dev.tar.gz", "has_sig": false, "md5_digest": "b6e6044cd862e298eae6f283ed3db85d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431687, "upload_time": "2011-10-02T07:04:31", "url": "https://files.pythonhosted.org/packages/a0/42/6bb0ec59447b2eba90e07b365f14d2c72a9578bd444f1a793dd11018088b/raptorizemw-0.1.5dev.tar.gz" } ], "0.1.6dev": [ { "comment_text": "", "digests": { "md5": "ccf7321a689901081eb05a9675b8d2b2", "sha256": "076e76a5e1e55fc02dfa3aad4c4e4c75b8da7257272d6e88eaec5e0a1fbbf79d" }, "downloads": -1, "filename": "raptorizemw-0.1.6dev.tar.gz", "has_sig": false, "md5_digest": "ccf7321a689901081eb05a9675b8d2b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431691, "upload_time": "2011-10-02T07:07:19", "url": "https://files.pythonhosted.org/packages/db/6a/686fc463c8b95e27806a77f30ac1fab1111e63ed62295307d030ed450c6b/raptorizemw-0.1.6dev.tar.gz" } ], "0.1.7dev": [ { "comment_text": "", "digests": { "md5": "9aade5e3b2e52f71740a1a74d157db50", "sha256": "e394db28f0a20d7a53230113965633623db5dcf1b975b097e3928e32c68bdf2c" }, "downloads": -1, "filename": "raptorizemw-0.1.7dev.tar.gz", "has_sig": false, "md5_digest": "9aade5e3b2e52f71740a1a74d157db50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2433201, "upload_time": "2011-10-03T21:24:28", "url": "https://files.pythonhosted.org/packages/f0/31/630dd14d66cec1af062a5548888f5085a39b101998e9af6adfc1f9df0438/raptorizemw-0.1.7dev.tar.gz" } ], "0.1.8dev": [ { "comment_text": "", "digests": { "md5": "5425e9bd5d320d16f251948679dfdf6d", "sha256": "aefbc7701348f73eadcbacb14fe637fe83f759f016ceacb9fc476cc047a42a10" }, "downloads": -1, "filename": "raptorizemw-0.1.8dev.tar.gz", "has_sig": false, "md5_digest": "5425e9bd5d320d16f251948679dfdf6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2433220, "upload_time": "2011-10-03T21:58:23", "url": "https://files.pythonhosted.org/packages/50/af/e6cfac188a9b5e7326ac0a695560de1be9c55aa061a4cebcfd2d014f4345/raptorizemw-0.1.8dev.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "fab7c16595fed100065d2c39c85f69fa", "sha256": "aad241c7a54af4f8dbc432f12aaeef67eb498b38b19443bae787f9a25077e3bc" }, "downloads": -1, "filename": "raptorizemw-0.1.9.tar.gz", "has_sig": false, "md5_digest": "fab7c16595fed100065d2c39c85f69fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2430251, "upload_time": "2012-08-25T04:52:50", "url": "https://files.pythonhosted.org/packages/e6/37/ecc3ab6abd581814fc3dcc76ded7f469b7d1c540c72082ae092df3ce4593/raptorizemw-0.1.9.tar.gz" } ], "0.1dev": [ { "comment_text": "", "digests": { "md5": "74eb51196262c0e05e9e178ca7b395d4", "sha256": "9034db21cb3902e849dc8d84874ebd75df0d06b7569c067fca81c575c2ef0cae" }, "downloads": -1, "filename": "raptorizemw-0.1dev.tar.gz", "has_sig": false, "md5_digest": "74eb51196262c0e05e9e178ca7b395d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4407, "upload_time": "2011-10-01T18:51:48", "url": "https://files.pythonhosted.org/packages/26/55/ff701e91473fbac06080909d6770becdc3d6c2dc69f10a591ab53a645e49/raptorizemw-0.1dev.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "77657e13daf2f1d965fda4e9b76f56ee", "sha256": "96e4aad2a87ed33684a4a4749e40620468e57491145eaee964e360e317257b95" }, "downloads": -1, "filename": "raptorizemw-0.2.0.tar.gz", "has_sig": false, "md5_digest": "77657e13daf2f1d965fda4e9b76f56ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431349, "upload_time": "2012-09-06T13:14:13", "url": "https://files.pythonhosted.org/packages/15/e8/39dd4c2552cc5b076fb49efad956ea5c2f9ecc93b1d13c4a36f811d206ff/raptorizemw-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "d28cf343c440b00d7380e622470d1bb5", "sha256": "61a41514f541c95d82e4ea209fac7da8446ab0f163097598639d9c856f9a5b65" }, "downloads": -1, "filename": "raptorizemw-0.2.1.tar.gz", "has_sig": true, "md5_digest": "d28cf343c440b00d7380e622470d1bb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2432683, "upload_time": "2014-11-18T21:25:41", "url": "https://files.pythonhosted.org/packages/dd/db/2f19e912e2f4d98ce9893f702a55a46b2bcd018ba954162394d775c9470d/raptorizemw-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d28cf343c440b00d7380e622470d1bb5", "sha256": "61a41514f541c95d82e4ea209fac7da8446ab0f163097598639d9c856f9a5b65" }, "downloads": -1, "filename": "raptorizemw-0.2.1.tar.gz", "has_sig": true, "md5_digest": "d28cf343c440b00d7380e622470d1bb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2432683, "upload_time": "2014-11-18T21:25:41", "url": "https://files.pythonhosted.org/packages/dd/db/2f19e912e2f4d98ce9893f702a55a46b2bcd018ba954162394d775c9470d/raptorizemw-0.2.1.tar.gz" } ] }