Skip to content
The async transformation code.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
docs
newsfragments
src/unasync
tests
.appveyor.yml
.coveragerc
.gitignore
.readthedocs.yml
.travis.yml
LICENSE
LICENSE.APACHE2
LICENSE.MIT
MANIFEST.in
README.rst
pyproject.toml
pytest.ini
setup.py
test-requirements.txt

README.rst

unasync

Documentation Status Travis Build Status AppVeyor Build Status Coverage Status

Welcome to unasync, a project that can transform your asynchronous code into synchronous code.

Why are we doing it? - urllib3/urllib3#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 setup.py place the following code.

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

You can’t perform that action at this time.