Micro web framework around asyncio (ex tulip)
Project description
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:
pip install rainfall
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/
More examples here https://github.com/mind1master/rainfall/blob/master/rainfall/tests/app.py
Credits
Author: Anton Kasyanov (https://github.com/mind1master/)
Contributors: mksh (https://github.com/mksh)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rainfall-0.8.3.tar.gz
.
File metadata
- Download URL: rainfall-0.8.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b840bf5f82ddaae9103ee1b7132610be0c948329432661882de54f12ac218381 |
|
MD5 | 06bd2f1f1986a4e5812469bf483d8010 |
|
BLAKE2b-256 | 20d0a21e8058dd3bd1d752edc61769155404fd8c00cd3c7cce4741f2449ce2bc |