Async Web framework based on Tulip/asyncio
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9363286 Aug 12, 2014


Vase is a webframework for Tulip/asyncio

Inspired by Flask It currently has a basic HTTP interface and WebSocket support. A demo websocket app is available here

Sample echo app

from vase import Vase

app = Vase(__name__)

def hello(request):
    return "Hello Vase!"

class EchoEndpoint:
    WebSocket endpoint
    Has the following attributes:
    `bag` - a dictionary that is shared between all instances of this endpoint
    `transport` - used to send messages into the websocket, has send(message), close() methods
    def on_connect(self):
        self.transport.send("You are successfully connected")

    def on_message(self, message):

    def on_close(self, exc=None):
        print("Connection closed")

if __name__ == '__main__':