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.0a1.tar.gz (9.0 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.0a1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: retry-iter-0.1.0a1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for retry-iter-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 63f83da2c34ed36e0fa36e7a568bb87f025d48e5bd2228a77632d12b8d476db9
MD5 3da899b07164ec566e3a3c5d219874e5
BLAKE2b-256 84833404ec041cb4ad3bdca2c0f392b2c6e70b21dd4ebf3d760959bc9a5b91f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: retry_iter-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for retry_iter-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f4a2e7290e2788ec5d63e4663283be3d47a856651bc304e135d20a19a88ec83
MD5 239d1bcfc841a517b67bb409483f7675
BLAKE2b-256 fa49622a6c6f5841344ab41f4bd1282ecac2afae30393b5de97b401e656c016c

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