{ "info": { "author": "Dave Gallant", "author_email": "davegallant@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# decorate-all-methods\n\nDecorator that applies a decorator to all methods of a class.\n\n## Installing\n\n```bash\npip install decorate-all-methods\n```\n\n## Example Usage\n\n```python\nfrom decorate_all_methods import decorate_all_methods\nfrom tenacity import retry, stop_after_attempt, wait_fixed\n\n\n@decorate_all_methods(retry(stop=stop_after_attempt(3), wait=wait_fixed(1)), exclude=['__init__'])\nclass MyClass(object):\n\n def __init__(self, object):\n \"\"\"Will not be retried.\"\"\"\n pass\n\n def force_error(self):\n \"\"\"Will be retried 3 times.\"\"\"\n assert False\n\n def force_another_error(self):\n \"\"\"Will also be retried 3 times.\"\"\"\n assert False\n```\n\n_Note: It is not necessary to exclude any methods._\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning.\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0.\n\n## Acknowledgments\n\n* https://stackoverflow.com/a/6307868/1191286", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/davegallant/decorate_all_methods", "keywords": "methods,decorator", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "decorate-all-methods", "package_url": "https://pypi.org/project/decorate-all-methods/", "platform": "", "project_url": "https://pypi.org/project/decorate-all-methods/", "project_urls": { "Homepage": "https://github.com/davegallant/decorate_all_methods" }, "release_url": "https://pypi.org/project/decorate-all-methods/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "a class decorator that applies to all methods", "version": "0.0.2" }, "last_serial": 3977576, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "daa723633a7633a9b0148a26c2aa23ec", "sha256": "40c22c92082e4386120f5cbbfd9ef355af86c91235668bdb69c72d94afb3a933" }, "downloads": -1, "filename": "decorate-all-methods-0.0.1.tar.gz", "has_sig": false, "md5_digest": "daa723633a7633a9b0148a26c2aa23ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1787, "upload_time": "2018-05-09T00:47:01", "url": "https://files.pythonhosted.org/packages/c2/de/76f8cc3e7d35769d19dbdfd7177806cfef1bc60ebae1223d2d13a86efacf/decorate-all-methods-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "04e0fb2abaf3c65dab902c7779f2d7a8", "sha256": "0be711749bbf4681cd1738fb8867d702437d166953cd0b638079c51ed0a2c770" }, "downloads": -1, "filename": "decorate-all-methods-0.0.2.tar.gz", "has_sig": false, "md5_digest": "04e0fb2abaf3c65dab902c7779f2d7a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1813, "upload_time": "2018-06-19T14:01:24", "url": "https://files.pythonhosted.org/packages/6c/63/234989b90902ea20bec12539410b1cab42eea2400ef1554878abb8235526/decorate-all-methods-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "04e0fb2abaf3c65dab902c7779f2d7a8", "sha256": "0be711749bbf4681cd1738fb8867d702437d166953cd0b638079c51ed0a2c770" }, "downloads": -1, "filename": "decorate-all-methods-0.0.2.tar.gz", "has_sig": false, "md5_digest": "04e0fb2abaf3c65dab902c7779f2d7a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1813, "upload_time": "2018-06-19T14:01:24", "url": "https://files.pythonhosted.org/packages/6c/63/234989b90902ea20bec12539410b1cab42eea2400ef1554878abb8235526/decorate-all-methods-0.0.2.tar.gz" } ] }