| Name | retry-toolkit JSON |
| Version |
0.1.1
JSON |
| download |
| home_page | None |
| Summary | Yet another retry implementation. |
| upload_time | 2024-10-26 15:37:28 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | None |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# retry_toolkit
[](https://pypi.org/project/retry-toolkit)
[](https://pypi.org/project/retry-toolkit)
[](https://github.com/pypa/hatch)
-----
(Yet Another) Retry implementation for python.
Do you have code that may be subjected to intermittent failures? Then you should
have a retry wapper for it. This module includes a simple retry decorator
(factory) you can use. Or peek inside and copy the implementation into your own
project where you can make your own tweaks.
*No dependencies outside of standard python libraries*
## Table of Contents
- [Installation](#installation)
- [Examples](#examples)
- [License](#license)
## Installation
```console
pip install retry-toolkit
```
## Examples
Defaults to 3 tries, no delays between, retry all exceptions:
```python
from retry.simple import retry
@retry()
def foo():
some_networking_stuff()
```
Customize the basic behaviors like so:
```python
from retry.simple import retry
@retry(tries=4, backoff=1, exceptions=SomeConnectionError)
def foo():
some_other_networking_stuff()
```
The arguments can take callables for more customization.
## License
`retry-toolkit` is distributed under the terms of the
[MIT](https://spdx.org/licenses/MIT.html) license.
Raw data
{
"_id": null,
"home_page": null,
"name": "retry-toolkit",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "\"David E. James\" <david.eugene.james@protonmail.com>",
"download_url": "https://files.pythonhosted.org/packages/61/27/db23c5200e7662b0d6302891b1f35bd702509d3fa28fb3b28b0d101534c7/retry_toolkit-0.1.1.tar.gz",
"platform": null,
"description": "# retry_toolkit\n\n[](https://pypi.org/project/retry-toolkit)\n[](https://pypi.org/project/retry-toolkit)\n[](https://github.com/pypa/hatch)\n-----\n\n(Yet Another) Retry implementation for python.\n\nDo you have code that may be subjected to intermittent failures? Then you should\nhave a retry wapper for it. This module includes a simple retry decorator\n(factory) you can use. Or peek inside and copy the implementation into your own\nproject where you can make your own tweaks.\n\n*No dependencies outside of standard python libraries*\n\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Examples](#examples)\n- [License](#license)\n\n## Installation\n\n```console\npip install retry-toolkit\n```\n\n## Examples\n\nDefaults to 3 tries, no delays between, retry all exceptions:\n\n```python\nfrom retry.simple import retry\n\n@retry()\ndef foo():\n some_networking_stuff()\n```\n\nCustomize the basic behaviors like so:\n\n```python\nfrom retry.simple import retry\n\n@retry(tries=4, backoff=1, exceptions=SomeConnectionError)\ndef foo():\n some_other_networking_stuff()\n```\nThe arguments can take callables for more customization.\n\n## License\n\n`retry-toolkit` is distributed under the terms of the\n[MIT](https://spdx.org/licenses/MIT.html) license.\n",
"bugtrack_url": null,
"license": null,
"summary": "Yet another retry implementation.",
"version": "0.1.1",
"project_urls": {
"Documentation": "https://github.com/davidejames/retry-toolkit#readme",
"Issues": "https://github.com/davidejames/retry-toolkit/issues",
"Source": "https://github.com/davidejames/retry-toolkit"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "288e9aaf0b2fda21e9d5445cd7aa468fb062c2fe0eb9d52560aaa8f0fea32089",
"md5": "b656e58fada743d8a0d93725c9796c15",
"sha256": "f7056a3dd23479c514f5fc999a8ccc8934f459470cd4de7a6c271e2765b76ffd"
},
"downloads": -1,
"filename": "retry_toolkit-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b656e58fada743d8a0d93725c9796c15",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5744,
"upload_time": "2024-10-26T15:37:25",
"upload_time_iso_8601": "2024-10-26T15:37:25.405859Z",
"url": "https://files.pythonhosted.org/packages/28/8e/9aaf0b2fda21e9d5445cd7aa468fb062c2fe0eb9d52560aaa8f0fea32089/retry_toolkit-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6127db23c5200e7662b0d6302891b1f35bd702509d3fa28fb3b28b0d101534c7",
"md5": "d2e2226855d65507e5cd5db5fc3bfe28",
"sha256": "6cf6cd6a429424a2799c2e12dd5ac05cf7a65ef853b48bc222d7fc4eaa46068f"
},
"downloads": -1,
"filename": "retry_toolkit-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "d2e2226855d65507e5cd5db5fc3bfe28",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7673,
"upload_time": "2024-10-26T15:37:28",
"upload_time_iso_8601": "2024-10-26T15:37:28.044978Z",
"url": "https://files.pythonhosted.org/packages/61/27/db23c5200e7662b0d6302891b1f35bd702509d3fa28fb3b28b0d101534c7/retry_toolkit-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-26 15:37:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "davidejames",
"github_project": "retry-toolkit#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "retry-toolkit"
}