skip to navigation
skip to content

Not Logged In

rainfall 0.8.0

Micro web framework around asyncio (ex tulip)

Latest Version: 0.8.3

Quickstart

To start off, rainfall is a micro web framework around asyncio (ex tulip), similiar to the cyclone or tornado. Since it is asyncio based, rainfall is fully asyncronous.

The performance tests have shown that rainfall is not slower then twisted+cyclone and sometimes even faster (benchmark results will be posted later or you can test it by yourself).

Installation

As simple as:

pip3 install rainfall

Note

usually pip for python 3 is called pip3, but you may have it with other name

Hello world

Let's create a simple hello world app in example.py file like this:

import asyncio
from rainfall.web import Application, HTTPHandler


class HelloHandler(HTTPHandler):
    @asyncio.coroutine
    def handle(self, request):
        return 'Hello!'


app = Application(
    {
        r'^/$': HelloHandler(),
    },
)

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

Now you can run it by:

python3 example.py

And go to http://127.0.0.1:8888 in browser, you should see "Hello!"

Docs

For documentation go to http://rainfall.readthedocs.org/

 
File Type Py Version Uploaded on Size
rainfall-0.8.0.tar.gz (md5) Source 2014-01-06 5KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 56 downloads in the last week
  • 360 downloads in the last month
  • Author: Anton Kasyanov
  • Home Page: https://github.com/mind1master/rainfall
  • Keywords: asyncio,tulip,web,tornado,cyclone,python3
  • License:
    Copyright 2014 Anton Kasyanov
    
    
        Licensed under the Apache License, Version 2.0 (the "License"); you may
        not use this file except in compliance with the License. You may obtain
        a copy of the License at
    
            http://www.apache.org/licenses/LICENSE-2.0
    
        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
        WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
        License for the specific language governing permissions and limitations
  • Requires asyncio, jinja2
  • Categories
  • Package Index Owner: Anton.Kasyanov
  • DOAP record: rainfall-0.8.0.xml