Skip to main content

parallel_pro is a simple package for parallel processing

Project description

parallel_pro

parallel_pro is a simple package for parallel processing.

Installation

pip install parallel_pro

How to use

from parallel_pro import run_parallel
from datetime import datetime


def test(data):
    ss = list()
    for i in data:
        ss.append(i * 2)
    return ss


def main():
    start = datetime.now()
    data = run_parallel(list_of_data=list(range(100)), process_fun=test,workers=4,
                        verbose=False)
    end = datetime.now()
    # print(data)
    diff = end - start
    print(diff.total_seconds() / 60)

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

parallel_pro-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: parallel_pro-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5

File hashes

Hashes for parallel_pro-0.0.1.tar.gz
Algorithm Hash digest
SHA256 052f9672d9ef4ecc1a1912e6389dcc13c96bace13f155f6ceecb7fd90f4b8498
MD5 887df0afb9e9f70beeb64bfe2822a507
BLAKE2b-256 0839aa56101ed1178cc713cfb836d47625f0f58e403573a6a329009dfb71df96

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page