Metadata-Version: 2.1
Name: aiomultiprocess
Version: 0.2.0
Summary: asyncio version of the standard multiprocessing module
Home-page: https://github.com/jreese/aiomultiprocess
Author: John Reese
Author-email: john@noswap.com
License: MIT
Description: aiomultiprocess
        ===============
        
        Multiprocessing, but AsyncIO.
        
        [![build status](https://travis-ci.org/jreese/aiomultiprocess.svg?branch=master)](https://travis-ci.org/jreese/aiomultiprocess)
        [![version](https://img.shields.io/pypi/v/aiomultiprocess.svg)](https://pypi.org/project/aiomultiprocess)
        [![license](https://img.shields.io/pypi/l/aiomultiprocess.svg)](https://github.com/jreese/aiomultiprocess/blob/master/LICENSE)
        [![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
        
        
        Install
        -------
        
        aiomultiprocess requires Python 3.6 or newer.
        You can install it from PyPI:
        
            $ pip3 install aiomultiprocess
        
        
        Usage
        -----
        
        Most of aiomultiprocess mimics the standard multiprocessing module whenever
        possible, while accounting for places that benefit from async functionality.
        
        Executing a coroutine on a child process is as simple as:
        
            from aiomultiprocess import Process
        
            async def foo(...):
                ...
        
            p = Process(target=foo, args=..., kwargs=...)
            p.start()
            await p.join()
        
        If you want to get results back from that coroutine, then use `Worker` instead:
        
            from aiomultiprocess import Worker
        
            async def foo(...):
                ...
        
            p = Worker(target=foo, args=..., kwargs=...)
            p.start()
            await p.join()
        
            print(p.result)
        
        If you want a managed pool of worker processes, then use `Pool`:
        
            from aiomultiprocess import Pool
        
            async def foo(value):
                return value * 2
        
            async with Pool() as pool:
                result = await pool.map(foo, range(10))
        
        
        License
        -------
        
        aiomultiprocess is copyright [John Reese](https://jreese.sh), and licensed under
        the MIT license.  I am providing code in this repository to you under an open
        source license.  This is my personal repository; the license you receive to
        my code is from me and not from my employer. See the `LICENSE` file for details.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
