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

Uploaded Source

Built Distribution

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

KnKPoolExecutor-1.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KnKPoolExecutor-1.0.2.tar.gz
  • Upload date:
  • Size: 8.3 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-1.0.2.tar.gz
Algorithm Hash digest
SHA256 249b4ad83e2b2bb000f9575c103d7b53661fdce45d5c245c4c44248e17838095
MD5 ae87e1fb79d2d7d947f6468197a676b0
BLAKE2b-256 591b771f89fae9c11d26471ae8e2970b1e0ef98b7bd148cfad266005a0917f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KnKPoolExecutor-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a429fb1759aed18aea20c5a4f248a8564d63c0098776f82d4f91698ac667f2
MD5 1867bedacbe46665dbdb99576f61cf1c
BLAKE2b-256 3c8cfd3d1cd84f3c37debdf5dd1d78d0a76dd3b26c380da9c21e0e8a84277d78

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