Skip to main content

Simple lib that provides retry helper as iterator

Project description

Retry Iter - The easy way to handle retries via iteration

This module provides to generator functions, that could be used to handle retries via iteration. What could be easier then just iterate over attempts?

Take a look at examples below:

Synchronous retry

from retry_iter import retry_iter

state = False

for attempt in retry_iter(max_retries=5):
    if do_operation(params):
        state = True
        break

if not state:
    raise Exception("Operation failed")

Asynchronous retry

from retry_iter import a_retry_iter

state = False

async for attempt in a_retry_iter(max_retries=5):
    if await do_operation(params):
        state = True
        break

if not state:
    raise Exception("Operation failed")

Yodoo Cockpit - Manage your odoo infrastructure via odoo

Yodoo Cockpit - Manage your odoo infrastructure via odoo

Take a look at Yodoo Cockpit project, and discover the easiest way to manage your odoo installation. Just short notes about Yodoo Cockpit:

  • start new production-ready odoo instance in 1-2 minutes.

  • add custom addons to your odoo instances in 5-10 minutes.

  • out-of-the-box email configuration: just press button and add some records to your DNS, and get a working email

  • make your odoo instance available to external world (internet) in 30 seconds (just add single record in your DNS)

If you have any questions, then contact us at info@crnd.pro, so we could schedule online-demonstration.

Level up your service quality

Level up your service with our Helpdesk / Service Desk / ITSM solution.

Just test it at yodoo.systems: choose template you like, and start working.

Test all available features of Bureaucrat ITSM with this template.

Bug tracker

Bugs are tracked on CR&D’s Helpdesk. In case of trouble, please report there.

Maintainer

Center of Research & Development

Our web site is: https://crnd.pro/

This module is maintained by the Center of Research & Development company.

We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services (more info available on our site).Our main goal is to provide the best quality product for you.

For any questions contact us.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retry-iter-0.1.0a2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retry_iter-0.1.0a2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file retry-iter-0.1.0a2.tar.gz.

File metadata

  • Download URL: retry-iter-0.1.0a2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for retry-iter-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 92b9e2df90646b96d64f969cf66db4bde9e4871473a7e9897c2835ac69f1957d
MD5 7f185b0924fd1d8e9fec3a6a9b958a0b
BLAKE2b-256 8a5b260c640231fc535a4c175cb973c72756112ba357b53d2142024cd195ad2a

See more details on using hashes here.

File details

Details for the file retry_iter-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: retry_iter-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for retry_iter-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfcb9781c6eab8b8b3ff9f832aa8f061f470755baed880df7f1ca75301fe58d4
MD5 96418495054234ab2c2a0b11a87f545d
BLAKE2b-256 670e72d8d702bd111576de5ce603e8f57d74b6107e938a08e605c2aba23785d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page