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):
      time.sleep(1)
      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.

Source Distribution

apalis-0.1.0.8.tar.gz (88.7 kB view details)

Uploaded Source

File details

Details for the file apalis-0.1.0.8.tar.gz.

File metadata

  • Download URL: apalis-0.1.0.8.tar.gz
  • Upload date:
  • Size: 88.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.0.1.post20190818 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.10

File hashes

Hashes for apalis-0.1.0.8.tar.gz
Algorithm Hash digest
SHA256 84692fec3206630194f19457d0f1480b1974630ba7e2471d33863e7e45c43631
MD5 eb311d3f9d2e85bd6fad8ca79836a80c
BLAKE2b-256 48545cb8903c640354481ca0f3bf9c3ecf42558a4b0c24e564111a751c93cfd1

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