Metadata-Version: 1.1
Name: vsat
Version: 0.0.7
Summary: Very simple asynchronous tasks for Python.
Home-page: https://github.com/rsr5/vsat
Author: Robin Ridler
Author-email: robin.ridler@gmail.com
License: BSD
Description: 
        Very Simple Asynchronous Tasks
        ------------------------------
        
        A small library that allows asynchronous tasks to be executed.  Useful for
        web applications when you need a task to run in the background.  The API
        is modelled loosely on Celery_.  The library makes use of the Python
        multiprocessing_ library to run tasks in the background.
        
        .. _Celery: https://github.com/celery/celery
        
        .. _multiprocessing: https://docs.python.org/2/library/multiprocessing.html
        
        Example
        -------
        
        Install the library
        
        ::
        
            pip install vsat
        
        Create and run task.
        
        ::
        
            In [1]: from vsat.task import task
        
            In [2]: from vsat.worker import WorkerPool
        
            In [3]: worker_pool = WorkerPool.init(num_workers=1)
        
            In [4]: @task
               ...: def my_function(arg1):
               ...:     return arg1 * arg1
               ...:
        
            In [5]: worker_pool.start()
        
            In [6]: result = my_function.apply_async(2)
        
            In [7]: print result.get_result(block=True)
            4
        
Keywords: Simple Asynchronous Tasks
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: BSD License
