Skip to content

A python library with helpful things to be used with asyncio!

License

Notifications You must be signed in to change notification settings

TheMaster3558/asyncify

Repository files navigation

Asyncify

A python library with helpful things to be used with asyncio!

Documentation

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

Installation

Python 3.7 or higher is required

$ pip install -U asyncify-python

Example

import asyncify
import requests

@asyncify.asyncify_func
def get(url: str) -> str:
    return requests.get(url).text

# `get` is no longer a blocking function
# it is now a coroutine function

async def main():
    text = await get('https://python.org')

# this is very useful to turn a blocking library into an async library
get = asyncify(requests.get)

About

A python library with helpful things to be used with asyncio!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages