Skip to main content

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

Download files

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

Source Distribution

vanilla.bean-0.1.3.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file vanilla.bean-0.1.3.tar.gz.

File metadata

  • Download URL: vanilla.bean-0.1.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vanilla.bean-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0d74b8ce66de0284be64004c40f595f74e3c17caea53db7b9d391ad7828e219a
MD5 18ebd03e4a5f786701f2ae62612fce86
BLAKE2b-256 493e539c91a690897892fa344e9ce787e68a6dab1d0bc6ecc941f6316268110a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page