Skip to main content

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

Project description

Kanokkul's Pool Executor

Kanokkul's AWS Lambda-Compatible process and thread pool executor

Installation

pip install knk-pool-executor

Usage

Simply substitute ProcessPoolExecutor with AWSLambdaProcessPoolExecutor

from knk_pool_executor import AWSLambdaProcessPoolExecutor

with AWSLambdaProcessPoolExecutor() 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-0.0.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

KnKPoolExecutor-0.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KnKPoolExecutor-0.0.3.tar.gz
  • Upload date:
  • Size: 4.8 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.0 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-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3704ce5331099b201d75cc13ddec5d231957ba6760fa38479f61e93c13ac1f9c
MD5 dbd66b88c5f1a334724766b43d97793e
BLAKE2b-256 9b26f97668189816599ed09ba16813f9ec3d4e5b1a0589700c35548487584f76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KnKPoolExecutor-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.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.0 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-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2dce76e29a7483b8a26f3be831ea1817182b368b6b0bc0d39d37d03a48b87c43
MD5 f17c6f983edc3f9e33093fd28fc6bb8a
BLAKE2b-256 fd9a1875804e1905d864940b4210f3b3db838115537cf167388789daf757bd35

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