Skip to main content

Parallel wrapper for easy multi-threading.

Project description

Parallel wrapper for easy multi-threading.

Installation

Through pip:

$ pip install easy-parallel

Manually, from package root, run:

$ make requirements

Usage

In python session:

def foo(x, y):
  return x + y

num_threads = 10
inputs = [(x * x, x) for x in range(10)]

import parallel as par
results = par.submit_jobs(foo, inputs, num_threads)
print results

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

easy-parallel-0.1.6.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

easy_parallel-0.1.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file easy-parallel-0.1.6.tar.gz.

File metadata

  • Download URL: easy-parallel-0.1.6.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for easy-parallel-0.1.6.tar.gz
Algorithm Hash digest
SHA256 88884ff8b99beb8024495e5534e069013d3fe51c37144b126459663b86adaaad
MD5 31f2bb820e33550eaf4d84f6667a8fd7
BLAKE2b-256 72fb4400b289b2e03c624cda6d10b0d4d6e81506bad5a47b681bb1b5f5b9a8d9

See more details on using hashes here.

File details

Details for the file easy_parallel-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: easy_parallel-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for easy_parallel-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 474fada788717f40b26ab38ff7d0b55c0429f143ed3b51fb2c5e15801fa7fac4
MD5 0dcaadf28ec1531cc4e3b0024fe48d95
BLAKE2b-256 6323ea981b5809c9256e03e8fc3ce755984b194abb9fdd8ccd0177e3f1740a29

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