Skip to main content

The async transformation code.

Project description

=======
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-hypernode.com/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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unasync-0.2.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

unasync-0.2.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file unasync-0.2.0.tar.gz.

File metadata

  • Download URL: unasync-0.2.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6+

File hashes

Hashes for unasync-0.2.0.tar.gz
Algorithm Hash digest
SHA256 047ae2db1b2e53f0eab8e63650a71d0a639fca1600b90bcd78d9d431b1636a65
MD5 42d6a3a376c712e172d03764d3639166
BLAKE2b-256 cb2fb6f8629cea0010cb414e9e455f97cb0b12f44b2bd80c5ea65c5bc3c84072

See more details on using hashes here.

Provenance

File details

Details for the file unasync-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: unasync-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6+

File hashes

Hashes for unasync-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 861d4f1477a168fd4ba947f8a2f5a2c6ce5a6c5b1d7acbe216543c96a0b9684f
MD5 44705f4242d423b7b472f8372b770565
BLAKE2b-256 c35454acb29cfcbd448f482980497210a6a8349595f8a48230b31738d3911d1a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page