Skip to main content

Utilities for easy parallelisation of tasks

Project description

The idea is to have an ubber simple decorator
which simply defers the calculation of any function
or method off process.

The decorated function returns a lazy object,
which will just attempt to retrieve the actual
return value of the function when it is about to
be used in any Python expression.

Currently, the only public member in the
project is the "parallel" decorator, which is used just as:

@parallel
def retr_url(url):
return urllib.urlopen(url).read()

-And voilá - upon calling the above "retr_url",
execution simply proceeds, while Python multiprocessing
creates another process to actually download the url
contents.

Unlike Python's 3.2 concurrent.futures, there is no
setup needed - just decorate your function
and you are all set-up to go.

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

lelo-1.0rc1dev.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file lelo-1.0rc1dev.tar.gz.

File metadata

  • Download URL: lelo-1.0rc1dev.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lelo-1.0rc1dev.tar.gz
Algorithm Hash digest
SHA256 bddaf4e73969b5730289b881f1a725734604d1482e65bcfbf20eeaa6878f370d
MD5 ed48ca7f8869f3012c4302aa4b660646
BLAKE2b-256 93496f5875e5e1ffd05bb0f9a9b90d0c39fe853c98b41337d85868a86b231e19

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