Skip to main content

A parallel computing library.

Project description

What is Apalis?

Apalis is a python library for parallel computing. It focuses on enabling parallel computing with little overhead. To explore the apalis functionality see the Documentation.

Getting started with Apalis

Apalis can be installed from PyPI:

   pip install apalis

Apalis can send an object into a child process and interact with it through a Handler. To send an object into a parallel process just:

   import apalis
   import time

   class A:
    def expensive(self, x):
      return x
   a = A()
   obj = apalis.Handler(a) # Sends the object to a child process.
   token = obj.expensive(5) # Sends the task to the object in the child process.
   token() # Calling the token yields the result of the operation.

The same can be done with multiple Handlers at once.

   objs = [apalis.Handler(A()) for _ in range(16)]
   tokens = [obj.expensive(5) for obj in objs]
   aplais.get(tokens) # Gets the results of the operations.

More examples can be found in this Jupyter Notebook.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for apalis, version
Filename, size File type Python version Upload date Hashes
Filename, size apalis- (88.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page