Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asyncify-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyncify-python

A python library to make things async!

  • 2.1.0
  • PyPI
  • Socket score

Maintainers
1

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

.. code:: sh

$ pip install -U asyncify-python

Example

.. code:: py

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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc