Skip to content

davidejames/resilience-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resilience-toolkit

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install resilience-toolkit

Examples

(Hypothetical) example of multiple resilience methods working together

@timing(tmax=3)
@fallback()
@circuitbreaker()
@retry(tries=3, sleep=0.12, backoff=exponential)
@timing(tmax=0.3)
def foo(a,b):
    # do some networking stuff
    pass

@fallback.foo()
@timing(tmax=0.3)
def foo_alt():
    # some backup method
    pass

License

resilience-toolkit is distributed under the terms of the MIT license.

About

A collection of resilience features for python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages