Skip to main content

Extension of concurrent.futures for Cloud-Function-as-a-Service compatibility

Project description

Kanokkul's Pool Executor

Kanokkul's Pool Executor contains ProcessPoolExecutor and ThreadPoolExecutor which preserve traceback output for exception. This package also has StackTracedProcessPoolExecutor for environment without /dev/shm

Installation

pip install KnKPoolExecutor

Usage

Simply substitute ProcessPoolExecutor with PipeProcessPoolExecutor or StackTracedProcessPoolExecutor
Replace ThreadPoolExecutor with StackTracedThreadPoolExecutor

from knk_pool_executor import PipeProcessPoolExecutor

with PipeProcessPoolExecutor() as pool:
    future = pool.submit(some_function, arg, kw=kw)
    
    # do another thing

    result = future.result()

Inspiration

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

KnKPoolExecutor-2.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

KnKPoolExecutor-2.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file KnKPoolExecutor-2.0.0.tar.gz.

File metadata

  • Download URL: KnKPoolExecutor-2.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for KnKPoolExecutor-2.0.0.tar.gz
Algorithm Hash digest
SHA256 44ec6674fece847626c5f35f28b75f6af9a5407c508a3fff63b91a4510ef1821
MD5 99a969e448b08b10e41a8f765a3cfa30
BLAKE2b-256 176e7731e1a799f162593b05b9c1c38ed0dc248614e0ed2f81b2317c7f5b8b5e

See more details on using hashes here.

File details

Details for the file KnKPoolExecutor-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: KnKPoolExecutor-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for KnKPoolExecutor-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e83e20822bc7efc8592349ba182f5d94006764f8b91375b4f934c26fc6474005
MD5 cabfb3d1288968cc8716000202888b35
BLAKE2b-256 d5d1aad9f8f01b44d4a5b0b0d24855c30f895588e5b1fdb835be6256d4e0b300

See more details on using hashes here.

Supported by

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