Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Obligatory Sinatra style (but concurrent!) micro-web framework for Vanilla.

Project description

Obligatory Sinatra style (but concurrent!) micro-web framework for Vanilla.

Example

h = vanilla.Hub()
b = h.bean(port=8000)

@b.get('/')
def index(request):
    response = request.response()
    response.send('Hello ')
    h.sleep(1000)
    response.send('World\n')
terminal

Websockets

h = vanilla.Hub()
b = h.bean(port=8000)

@b.websocket('/echo')
def echo(ws):
    while True:
        ws.send(ws.recv())

Installation

pip install vanilla.bean

Project details


Download files

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

Files for vanilla.bean, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size vanilla.bean-0.1.3.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page