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 KnKPoolExecutor

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-1.0.0.tar.gz (8.2 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.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KnKPoolExecutor-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 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.0.tar.gz
Algorithm Hash digest
SHA256 5c6561519b2b82221bf66368dea6a830133cc6fa724732a95e47162909d95c28
MD5 0d84b0e880be324e39bade537353a693
BLAKE2b-256 8ca17c9a357ee85b62fca964399c1c91c1045a4fa1602bd522dc993ea573b2ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KnKPoolExecutor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31c5c7cde526c4830a8e61e359ff8137835d9eb60b8b9f16c6784bd8f6e45d8f
MD5 0fbb71c0e5d40d945f823bc16a9ff6fd
BLAKE2b-256 03ca843a9c78cd5efd44d0362c6ec13871e50956c576f6b805a5096bc026ebeb

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