Hello
Each iteration returns the total time (in seconds) to delay. It does this by increasing the maximum number of slots each iteration and then choosing a random number of slots between 0 and the maximum number of slots.
(See https://en.wikipedia.org/wiki/Exponential_backoff#Collision_avoidance)
Example:
import exponentional_backoff_ca
time_slot_secs = 2.0 # The number of seconds in each time slot.
num_iterations = 10 # The number of iterations.
exp_boff = ExponentialBackoff(time_slot_secs, num_iterations)
for interval in exp_boff:
print(f"number of seconds in this slot is {interval}")
Metadata
Release files for exponential-backoff-ca 2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exponential_backoff_ca-2.tar.gz | 2.5 kB | Without provenance | Details for exponential_backoff_ca-2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exponential_backoff_ca-2-py3-none-any.whl | Python 3 | none | any | Details for exponential_backoff_ca-2-py3-none-any.whl |
Total release size: 5.5 kB
Release files / exponential_backoff_ca-2.tar.gz
| Download URL | exponential_backoff_ca-2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0d20b862b305b790b0baa9361b7f4d777fd1c7ba2eb106f495670abe616f612
|
|
BLAKE2b-256 checksum How to use checksums |
ca5eea7bdb45b029528bf89605fa444263aab9a0725b6d14bd2601767b71f3ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / exponential_backoff_ca-2-py3-none-any.whl
| Download URL | exponential_backoff_ca-2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
793a566ebcf6caf2186450e306bf53ecba8be06adb5206a5b690f29be5c8ba65
|
|
BLAKE2b-256 checksum How to use checksums |
155499fdffb113d2832eedf1a89862045be49fbf468ae5b5a358424c12ef629f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Security for exponential-backoff-ca 2
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.