Bulletproof concurrent.futures
Project description
Futureproof - Bulletproof concurrent.futures
concurrent.futures
is amazing, but it's got some sharp edges that have bit me many times in the past.
Futureproof is a thin wrapper around it addressing some of these problems and adding some usability features.
Features:
- Monitoring: a summary of completed tasks is logged by default.
- Fail fast: errors cause the main thread to raise an exception and stop by default.
- Error policy: the user can decide whether to raise, log or completely ignore errors on tasks.
- Backpressure control: large collections of tasks are consumed lazily as the executor completes tasks, drastically reducing memory consumption and improving responsiveness in these situations.
Check out the examples directory for a hands-on comparison between futureproof
and concurrent.futures
.
Current status: Alpha
The API is subject to change.
Currently only tested as a wrapper for ThreadPoolExecutor.
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
futureproof-0.1.1.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file futureproof-0.1.1.tar.gz
.
File metadata
- Download URL: futureproof-0.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde7f7dabfa37d30fb3022393535edde95ee8123a7e27e5b5a70ec844ebe428b |
|
MD5 | 42b85cfc766ef8ee09215d7c54c4b9aa |
|
BLAKE2b-256 | 74b7778ca0d98e077aaab32e295fc638381fa3a76622485cf73c9f0b379e68e0 |
File details
Details for the file futureproof-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: futureproof-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84293f5e68b0d596612715ffd4a0cb53233269303d6669d9c24d704874e5048d |
|
MD5 | d776a09a0fbc8cfd0bc3ae1152d6df56 |
|
BLAKE2b-256 | b7118d942caecd1f2fc43102638188c6bca47f7f15eefff27399444f9baa82b9 |