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.1.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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KnKPoolExecutor-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 de6e1f409374e6d6e51414d117459b7effc15196f731d8f970e8a8ec46247623
MD5 77eb254bd21ee4b78f4c9fd9589788ea
BLAKE2b-256 10c5a59b14a97f0c980d0ad5a9e4e167796503c2c53dee764e692a27ce5317e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KnKPoolExecutor-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bb1804d8aa457f057b6bb2b6176a74eec567df527a9081d7793af2f383a4133
MD5 620bfa8aa065a6253a9664239a550718
BLAKE2b-256 f3ae0418bb2480199f16aaadb0d131d5192c4ed3a740371dbec5d1a723fe34be

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