multio

multio - an unified async library for curio and trio


License
MIT
Install
pip install multio==0.2.5

Documentation

multio

multio is a convenience wrapper for curio and trio, that unifies their apis such that they can be used willy-nilly.

Hey! Use anyio instead!

anyio

multio was written as an ad hoc layer between curio and trio, for asks. asks is now driven by anyio which is a much more together version of multio, and even supports asyncio. Go support anyio!

example

# First creates a curio socket, and then a trio socket.
import curio
import trio

import multio
from multio import asynclib

def make_socket():
    s = asynclib.open_connection('example.org', 80)

multio.init('curio')
curio.run(make_socket)

multio.init('trio')
trio.run(make_socket)