Skip to main content
gevent-breaker
==============

[![Build Status](https://travis-ci.org/daroot/gevent-breaker.svg?branch=1.0.0)](https://travis-ci.org/daroot/gevent-breaker)

Circuit Breaker pattern for gevent apps.

Install
-------

$ pip install gevent-breaker

Usage
-----

```python
from gevent_breaker import circuit_breaker, CircuitBroken
while True:
try:
# After enough errors (5 by default), raise a CircuitBroken
with circuit_breaker("breaker1"):
1/0
except ZeroDivisionError:
print("Got an exception!")
except CircuitBroken:
print("Too many errors!")
break

try:
# Don't raise a CircuitBroken, instead just wait for a period
# of time (default 60s) before trying again.
with circuit_breaker("breaker2", block=True):
1/0
except ZeroDivisionError:
print("Got an exception")
```

Metadata

Release files for gevent-breaker 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gevent-breaker 1.0.0
File Size Uploaded Provenance Actions
gevent-breaker-1.0.0.tar.gz 4.3 kB Without provenance Details for gevent-breaker-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gevent-breaker 1.0.0
File Interpreter ABI Platform Actions
gevent_breaker-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for gevent_breaker-1.0.0-py2.py3-none-any.whl

Total release size: 10.5 kB

Release files / gevent-breaker-1.0.0.tar.gz

Download URL gevent-breaker-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
400423211bdd0117f1184671bc31fc271b3893a4795f9982f543bc2ce76d6d26
BLAKE2b-256 checksum
How to use checksums
cd3d130aedf20945128821071cbfa0342a7a79124603bce91b54aae3a0a0e000
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent_breaker-1.0.0-py2.py3-none-any.whl

Download URL gevent_breaker-1.0.0-py2.py3-none-any.whl
Size 6.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ae1e0694b1324b69ba16812058bc260b1dd3e4a71b6feefe02f36583dea597f3
BLAKE2b-256 checksum
How to use checksums
ae72b237b68ac096811e5aac8d6afa721f1a584735bb2ea1c84fc4824ad5e267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for gevent-breaker 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page