Skip to content

A unifying library for curio and trio, supporting both async libs for great good.

License

Notifications You must be signed in to change notification settings

theelous3/multio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A unifying library for curio and trio, supporting both async libs for great good.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages