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.0.2.tar.gz (8.4 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.0.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file retry-iter-0.0.2.tar.gz.

File metadata

  • Download URL: retry-iter-0.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for retry-iter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 392c3f8cd32a5589d5a274981a3b1e0f71d8045ed072188fb95faa7ca5cd0806
MD5 81f968a2c1888a76f3fe1f57ee4e4028
BLAKE2b-256 5a1ddaa95c7936322e4021ccd8eae43f6435ea24af56df15b4af2164af857ba8

See more details on using hashes here.

File details

Details for the file retry_iter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: retry_iter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for retry_iter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04093fee1f1a20c1666be12cc16d80fd69909ebf496f15917df9d80720173fbc
MD5 ea08cb3dd5b4f0694cf0e2bafee95dd4
BLAKE2b-256 a83ee1cb2391c1dc266b1aca8756183910fbf5affe33079bcd20386df2654979

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