semvec/pypi-packages huggingface dataset:
bindings.rust 0.1.0
A namespace for Python bindings to Rust libraries
License: MIT
Keywords: bindings,namespace,ffi

``bindings.rust``
=================

*Namespaces are one honking great idea -- let's do more of those!*

A `python namespace <https://www.python.org/dev/peps/pep-0420/>`_ to hold Python
binding modules of `Rust <https://www.rust-lang.org/>`_ libraries. Inspired by the
`backports <https://pypi.python.org/pypi/backports>`_ module.
bindings.cpp 0.1.0
A namespace for Python bindings to C++ libraries
License: MIT
Keywords: bindings,namespace,ffi

``bindings.rust``
=================

*Namespaces are one honking great idea -- let's do more of those!*

A `python namespace <https://www.python.org/dev/peps/pep-0420/>`_ to
hold Python binding modules of *C++* libraries. Inspired by the
`backports <https://pypi.python.org/pypi/backports>`_ module.
bindings.c 0.1.0
A namespace for Python bindings to C libraries
License: MIT
Keywords: bindings,namespace,ffi

``bindings.rust``
=================

*Namespaces are one honking great idea -- let's do more of those!*

A `python namespace <https://www.python.org/dev/peps/pep-0420/>`_ to hold Python
binding modules of *C* libraries. Inspired by the
`backports <https://pypi.python.org/pypi/backports>`_ module.
bindings 0.1.0
A namespace for Python binding modules
License: MIT
Keywords: bindings,namespace,ffi

``bindings``
============

.. code::

    >>> import this
    ...
    Namespaces are one honking great idea -- let's do more of those!

A `python namespace <https://www.python.org/dev/peps/pep-0420/>`_ to hold Python
binding modules. Inspired by the `backports <https://pypi.python.org/pypi/backports>`_
module.
yield2await 0.0.1
Transform your python code to use async/await (PEP 492)
License: MIT
Requires Python: >=3.5
Keywords: yield from asyncio coroutines with async await

|PyPI| |python versions| |license|

yield2await
===========

Transform your python code from old syntax with ``yield from`` to use ``async``/``await`` (PEP 492).

Usage
~~~~~

.. code:: bash

    $ pip install yield2await
    $ yield2await <path> [-i <ignore-path>]

Before
~~~~~~

.. code:: python

    @asyncio.coroutine
    def handler(request):
        session = yield from get_session(request)
        session['last_visit'] = time.time()
        with (yield from self.dbengine) as conn:
            ret = yield from conn.execute(query)
            user = yield from ret.fetchone()
        return web.Response(body=b'OK')

After
~~~~~

.. code:: python

    async def handler(request):
        session = await get_session(request)
        session['last_visit'] = time.time()
        async with self.dbengine as conn:
            ret = await conn.execute(query)
            user = await ret.fetchone()
        return web.Response(body=b'OK')

Contribution
~~~~~~~~~~~~

Feel free to contribute. Just do RP.

Caution
~~~~~~~

This is a very alpha, check the changes manually before commit.

.. |PyPI| image:: https://img.shields.io/pypi/v/yield2await.svg
   :target: https://pypi.python.org/pypi/yield2await
.. |python versions| image:: https://img.shields.io/badge/python-3.5%2C%203.6-blue.svg
.. |license| image:: https://img.shields.io/apm/l/vim-mode.svg
   :target: https://github.com/alxpy/yield2await/blob/master/LICENSE