{ "info": { "author": "Keith Ma", "author_email": "itsallnans@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "Intentionally Insulting Exceptions for Python\n=============================================\n\nThis package provides a set of insulting exceptions you can use to make\nyour future self laugh, bother your collaborators, or both.\n\nThe core feature is the ``InsultError`` exception class, which behaves\njust like a normal exception with a few differences: 1. The raised error\nis a randomly-selected subclass with a silly, insulting name 2. If no\nmessage is provided, the error will use a random insulting message 3. A\nspecial keyword argument ``rating`` provides some control over how\noffensive you want the error and message to be (1 being tamest and 10\nbeing meanest)\n\nPlease contribute! This package will be much more fun if not limited to\nthe measily initial set of options. Obviously, racist, sexist, or other\nbullshit jokes are not welcome.\n\nExample Usage\n-------------\n\n.. code:: python\n\n from insult_error import InsultError\n\n # raise a random insult with a random message (defaults to rating=5)\n raise InsultError\n # >>> NotThisAgain: Don't believe everything you think.\n\n # raise a random insult with a user-specified message\n raise InsultError('This is my message')\n # >>> NotThisAgain: This is my message\n\n # raise a random insult with <= 2 rating\n raise InsultError(rating=2)\n # >>> ForGodsSake: I don\u2019t have the time or the crayons to explain this to you.\n\n # raise a random insult with <= 6 rating\n raise InsultError(rating=6)\n # >>> FuckYouBuddy: I envy people who have never met you.\n\n # handle InsultError exceptions (just like normal, non-insulting errors)\n try:\n raise InsultError\n except InsultError\n print('Better luck next time!')\n # >>> Better luck next time!", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/keithfma/insult_error", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "insult-error", "package_url": "https://pypi.org/project/insult-error/", "platform": "", "project_url": "https://pypi.org/project/insult-error/", "project_urls": { "Homepage": "https://github.com/keithfma/insult_error" }, "release_url": "https://pypi.org/project/insult-error/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Intentionally insulting exceptions", "version": "0.2.1" }, "last_serial": 4467905, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2b9f1947d109bfe274cc254718c995cb", "sha256": "a65c0cb2dddd63ef01c906c2a92baecf0a5e6acb1210afd74f744aea8b24a5f8" }, "downloads": -1, "filename": "insult_error-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2b9f1947d109bfe274cc254718c995cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3657, "upload_time": "2018-10-26T05:17:31", "url": "https://files.pythonhosted.org/packages/8d/3a/0934493682715948415cd2cbb54af0a55dd7602af0fad4d4b60508bc1831/insult_error-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9db61d0229d584a14ac7a607a0049466", "sha256": "ff025a00bac01ebedfd3ff346e2ed47c5dbf26e41417087e9d419830466db195" }, "downloads": -1, "filename": "insult_error-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9db61d0229d584a14ac7a607a0049466", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2580, "upload_time": "2018-10-26T05:17:32", "url": "https://files.pythonhosted.org/packages/30/2c/b24e58af2bd276ec227f705c11ca70ea68cb9157432c29466bd1c78a9ff0/insult_error-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "19db3fda51ba08755d5bc94a288d8090", "sha256": "c5eb6b418bbd315aa812405720efece6abdf8db5a8fa3514b805704501d53eb7" }, "downloads": -1, "filename": "insult_error-0.1.2.tar.gz", "has_sig": false, "md5_digest": "19db3fda51ba08755d5bc94a288d8090", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2977, "upload_time": "2018-11-05T23:35:15", "url": "https://files.pythonhosted.org/packages/d1/f7/12ffb0df48cc0fd6d29c78f4929dd5020c1bc000dc0bbb294dde91b6e9ea/insult_error-0.1.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b958e36655a29e3d6cb00319682178a4", "sha256": "3c2d409f9508c8c807c57ccbb97169a0684ba097b865cf91227b08322e360fff" }, "downloads": -1, "filename": "insult_error-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b958e36655a29e3d6cb00319682178a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2996, "upload_time": "2018-11-09T01:43:58", "url": "https://files.pythonhosted.org/packages/53/c6/8f84aee7845f381957bd84fa2df92e55b15d318b8c4cab710f48e614aa97/insult_error-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b958e36655a29e3d6cb00319682178a4", "sha256": "3c2d409f9508c8c807c57ccbb97169a0684ba097b865cf91227b08322e360fff" }, "downloads": -1, "filename": "insult_error-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b958e36655a29e3d6cb00319682178a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2996, "upload_time": "2018-11-09T01:43:58", "url": "https://files.pythonhosted.org/packages/53/c6/8f84aee7845f381957bd84fa2df92e55b15d318b8c4cab710f48e614aa97/insult_error-0.2.1.tar.gz" } ] }