Metadata-Version: 2.1
Name: unasync
Version: 0.2.2
Summary: The async transformation code.
Home-page: https://github.com/RatanShreshtha/unasync
Author: Ratan Kulshreshtha
Author-email: ratan.shreshtha@gmail.com
License: MIT -or- Apache License 2.0
Keywords: async
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Framework :: Trio
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.5
Description-Content-Type: text/x-rst

unasync
=======

|documentation| |travis| |appveyor| |codecov|

.. |travis| image:: https://travis-ci.com/RatanShreshtha/unasync.svg?branch=master
    :alt: Travis Build Status
    :target: https://travis-ci.com/RatanShreshtha/unasync

.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/sjw2q42mx7jvqbyp/branch/master?svg=true
    :alt: AppVeyor Build Status
    :target: https://ci.appveyor.com/project/RatanShreshtha/unasync

.. |codecov| image:: https://codecov.io/gh/RatanShreshtha/unasync/branch/master/graph/badge.svg
    :alt: Coverage Status
    :target: https://codecov.io/gh/RatanShreshtha/unasync

.. |documentation| image:: https://readthedocs.org/projects/unasync/badge/?version=latest
    :alt: Documentation Status
    :target: https://unasync.readthedocs.io/en/latest/?badge=latest


Welcome to `unasync <https://pypi.org/project/unasync/>`_, a project that can transform your asynchronous code into synchronous code.

*Why are we doing it?* - `urllib3/urllib3#1335 <https://github.com/urllib3/urllib3/pull/1335/>`_

Installation
============

::

    pip install unasync

Usage
=====

To use the unasync project you need to install the package and then create a **_async** folder where you will place the asynchronous code that you want to transform into synchronous code.

And then in your :code:`setup.py` place the following code.

.. code-block:: python
    import unasync

    setuptools.setup(
        ...
        cmdclass={'build_py': unasync.build_py},
        ...
    )

And when you will build your package you will get your synchronous code in **_sync** folder.

Documentation
=============

https://unasync.readthedocs.io/en/latest/

License: Your choice of MIT or Apache License 2.0


