Skip to main content

Parallel for-loop implementation

Project description

Parallel Loop Library

Execute for-loops in parallel with ease!

Installation

pip install -e .  # For local development

Usage

from kolluri_parallel import parallel_for

def process_item(item):
    # Your computation here
    return (item, item ** 2)

results = parallel_for(
    iterable=range(1, 6),
    func=process_item,
    max_workers=3
)

Features

  • Thread/process pool executors
  • Error handling
  • Simple API

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

kolluri_parallel-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

kolluri_parallel-0.0.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file kolluri_parallel-0.0.1.tar.gz.

File metadata

  • Download URL: kolluri_parallel-0.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for kolluri_parallel-0.0.1.tar.gz
Algorithm Hash digest
SHA256 454fc4dff7c79cb954cf75c0cece4df45308dbd2db2dfc161596ce12065f4e90
MD5 edf2215ba78337fe74ba182c583a7ea9
BLAKE2b-256 333ad5c866f11a08620c77d269b792dd73b78690752a0ac9052275b690d664b1

See more details on using hashes here.

File details

Details for the file kolluri_parallel-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kolluri_parallel-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7604b9d3be005d747385270a2f49477fd5f7c230bb1489cb1d810e703687c30f
MD5 f25c551126e28a6baa899f9b0e7ebde2
BLAKE2b-256 303040d5779e3c03f3a88178195164b9af4b5dc2c3eda8601d52e514e77babab

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