Metadata-Version: 1.2
Name: miniasync
Version: 0.1.1
Summary: miniasync is a small library build on top of asyncio to faciliate running small portions of asynchronous code in an otherwise synchronous application
Home-page: https://gitlab.com/alich75/miniasync
Author: Alice Heaton
Author-email: UNKNOWN
License: LGPLv3+
Description: miniasync
        =========
        
        **miniasync** is a small library build on top of asyncio_ to faciliate running small portions of asynchronous code in an otherwise synchronous application.
        
        A typical use case is an application which is build as a synchronous application, but at some point needs to make an http request to two different web services and await the results before continuing. In synchronous Python you'd have to do each request in turn - **miniasync** makes it easier to run both requests in parallel without having to write asyncio_ boilerplate code.
        
        Example::
        
            import aiofiles
            import miniasync
        
            async def get_file_content(filename):
                async with aiofiles.open(filename, mode='r') as f:
                    return await f.read()
        
            results = loop.run(
                get_file_content('file1.txt'),
                get_file_content('file2.txt'),
            )
        
            assert results == [
                '<the content of file1.txt>',
                '<the content of file2.txt>'
            ]
        
        See the `documentation on readthedocs`_ for more examples and API.
        
        .. _asyncio: https://docs.python.org/3/library/asyncio.html
        .. _documentation on readthedocs: https://miniasync.readthedocs.io
        
        License
        -------
        
        Copyright © 2018, Alice Heaton. Released under the `LGPL 3 License`_
        
        .. _LGPL 3 License: https://www.gnu.org/licenses/lgpl-3.0.html
        
        
        Changes
        =======
        
        V0.1.1
        ------
        - Documentation improvements
        
        V0.1.0
        ------
        - Initial implementation: miniasync.run and miniasync.loop
        
Keywords: asyncio
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Requires-Python: >=3.5
