Various python decorators
Project description
Various useful python decorators:
- retry(tries, delay=3, backoff=2) Retries a function or method until it complite without exeptions delay sets the initial delay, and backoff sets how much the delay should lengthen after each failure. backoff must be greater than 1, or else it isn't really a backoff. tries must be at least 0, and delay greater than 0
- memoized
Classic memoization. Function cache results, then return objects from cache for same argumets
- retry(tries, delay=3, backoff=2) Retries a function or method until it complite without exeptions delay sets the initial delay, and backoff sets how much the delay should lengthen after each failure. backoff must be greater than 1, or else it isn't really a backoff. tries must be at least 0, and delay greater than 0
- memoized
Classic memoization. Function cache results, then return objects from cache for same argumets
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
decolib-0.0.1.tar.gz
(1.7 kB
view details)
File details
Details for the file decolib-0.0.1.tar.gz
.
File metadata
- Download URL: decolib-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a57b38fb63825acb4464117918262e11f103ea9ec8c52d15b46570cca678d84 |
|
MD5 | 09fb58482e088e9c8ca8c809fa1e6580 |
|
BLAKE2b-256 | b8810a4c2df230c2cc82f24ba7de46f84f7cdf10d1200671866cdff81890ea45 |