Skip to main content

Bulletproof concurrent.futures

Project description

Futureproof - Bulletproof concurrent.futures

Build Status Supported Python Versions PyPI

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


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.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

futureproof-0.1.2-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file futureproof-0.1.2.tar.gz.

File metadata

  • Download URL: futureproof-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 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

Hashes for futureproof-0.1.2.tar.gz
Algorithm Hash digest
SHA256 19be32e8bae40c341c06999c755e1c54f72ecd993b2abbfff6fc46bc598d6146
MD5 dd35dee4874919b049e2904f48cb183a
BLAKE2b-256 0c39c4fd0a53b8fb5f0b23adbf76925e5405ffc23cb4809976904ff454c852ea

See more details on using hashes here.

File details

Details for the file futureproof-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: futureproof-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 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

Hashes for futureproof-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 945cc5495c73a50fcb6cd2bb861964d8818e3abcaf43b7b2b71ff5e049741c6e
MD5 7b54d222659041d1623f83c109c51346
BLAKE2b-256 bec866f0fc371c4af9e16faee3808755e8d4e74bfbe3e2d4bf3fb6eb12214ef1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page