{ "info": { "author": "Roberto Rosario", "author_email": "roberto.rosario.gonzalez@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "Sabot: Controlled failure for Django\n====================================\n\n|Logo|\n\n\nDescription\n-----------\nProvoke predictable errors in your Django projects. Raise OperationalErrors to\nsee how well your project handle database connection errors. Ideal for failure\ntolerance testing.\n\n\nLicense\n-------\n\nThis project is open sourced under the `MIT License`_.\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install django-sabot\n\n* Add ``'sabot'``, to your project's ``INSTALLED_APPS`` list.\n* Add some sabot patches in your settings.py file.\n\n\nUsage\n-----\n\nIn you settings.py file::\n\n from django.db import OperationalError\n\n from sabot.import *\n\n SABOT_PATCHES = (\n ConnectPatcher(error_generator=RandomErrorProducer, kwargs={'low': 1, 'high': 3}),\n CursorPatcher(error_producer=RandomErrorProducer, kwargs={'exception': OperationalError, 'low': 1, 'high': 10}),\n CursorPatcher(error_producer=CountErrorProducer, kwargs={'exception': OperationalError, 'number': 100, 'reset': True}),\n CursorPatcher(error_producer=TimeDeltaErrorProducer, kwargs={'exception': OperationalError, 'timedelta': {'seconds': 30}, 'reset': True}),\n )\n\nA django-sabot patch is composed of a monkey patcher class and an error producer\nclass.\n\nFor example::\n\n CursorPatcher(error_producer=TimeDeltaErrorProducer, kwargs={'exception': OperationalError, 'timedelta': {'seconds': 30}, 'reset': True}),\n\nwill produce an OperationalError when a database cursor is requested, every 30\nseconds.\n\n\nContribute\n----------\n\n- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.\n- Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).\n- Write a test which shows that the bug was fixed or that the feature works as expected.\n- Make sure to add yourself to the `AUTHORS file`_.\n- Send a pull request\n\n.. _`MIT License`: https://github.com/rosarior/django-sabot/blob/master/LICENSE\n.. _`the repository`: http://github.com/rosarior/django-sabot\n.. _`AUTHORS file`: https://github.com/rosarior/django-sabot/blob/master/AUTHORS.rst\n.. |Logo| image:: https://github.com/rosarior/django-sabot/raw/master/docs/_static/logo.png\n\n\n0.1.0 (2015-07-20)\n==================\n\n- Initial release", "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/rosarior/django-sabot", "keywords": null, "license": "The MIT License (MIT)\n\nCopyright (c) 2015 Roberto Rosario\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "django-sabot", "package_url": "https://pypi.org/project/django-sabot/", "platform": "any", "project_url": "https://pypi.org/project/django-sabot/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rosarior/django-sabot" }, "release_url": "https://pypi.org/project/django-sabot/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Provoke predictable errors in your Django projects.", "version": "0.1.0" }, "last_serial": 1641635, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b620e2fac8d48fca26fce86764754352", "sha256": "bbd26e21bb031ee6e5b168564371c688e88c4b1cbb5b8b84e19080498965b5d5" }, "downloads": -1, "filename": "django-sabot-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b620e2fac8d48fca26fce86764754352", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4616, "upload_time": "2015-07-20T15:33:25", "url": "https://files.pythonhosted.org/packages/f4/8f/fff0b5acb9b296e35e76ecd1d49565d8186aa056d6727688d866b584f38b/django-sabot-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b620e2fac8d48fca26fce86764754352", "sha256": "bbd26e21bb031ee6e5b168564371c688e88c4b1cbb5b8b84e19080498965b5d5" }, "downloads": -1, "filename": "django-sabot-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b620e2fac8d48fca26fce86764754352", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4616, "upload_time": "2015-07-20T15:33:25", "url": "https://files.pythonhosted.org/packages/f4/8f/fff0b5acb9b296e35e76ecd1d49565d8186aa056d6727688d866b584f38b/django-sabot-0.1.0.tar.gz" } ] }