Avishan is just an set of tools
Project description
Avishan is a set of tools for building fast, comfortable and reliable falcon apps.
Quick start
On linux remember to install this packages:
pip install cython pip install -v --no-binary :all: falcon
Create virtual environment for your project:
sudo -H pip3 install virtualenv
Create your views with inheriting classes from “AvishanView”:
class NewsView(AvishanView): url = 'news/' def get(self): # entire get method pass def post(self): # entire post method pass
At the end of your file, add this to create server:
stage = AvishanFalconStage()
You can run your server simply with wsgiref:
if __name__ == '__main__': from wsgiref import simple_server httpd = simple_server.make_server('127.0.0.1', 8000, stage.app) httpd.serve_forever()
Features
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
falcon-avishan-0.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for falcon_avishan-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9869e6dbd174eb2d9ae62e0e1ffe9bd3988146bbde13bd06131715a783e41892 |
|
MD5 | b6e7a9baac395fbc56f1f357bee04b80 |
|
BLAKE2b-256 | 0ba5a380073fd09f30a2f3ac9646f06ae7fe94a19321ebfbfd68cd113f926c4e |