Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Async Web framework based on Tulip/asyncio

Project Description
Vase is a webframework for Tulip/asyncio
~~~~~~~~~~~~~~~~~~~~~~

Inspired by Flask
It currently has a basic WSGI interface and WebSocket support.
A demo websocket app is available here http://vase-chat.herokuapp.com/

Sample echo app
~~~~~~~~~~~~~~~~~

.. code-block:: python

from vase import Vase

app = Vase(__name__)


@app.route(path="/")
def hello(request):
return "Hello Vase!"


@app.endpoint(path="/ws/echo")
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
"""
def on_connect(self):
self.transport.send("You are successfully connected")

def on_message(self, message):
self.transport.send(message)

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

if __name__ == '__main__':
app.run()
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Vase-0.1.4.tar.gz (8.7 kB) Copy SHA256 Checksum SHA256 Source Nov 29, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting