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.2.tar.gz
(6.2 kB
view hashes)
Built Distributions
Close
Hashes for falcon_avishan-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a8d0b7dc805b14a2c16be2c561af19a2c32e9e94fe69302cce693fb9a70a72e |
|
MD5 | 1c4ac47b4ec3fa7a8fecbdb1545c2804 |
|
BLAKE2b-256 | c3f90a28f9f570d7c6c231db1b302796d858c16489589f958dc0c2421abf5acc |
Close
Hashes for falcon_avishan-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 630ac32b0bde6c8cf45efee7b1efdc4ed567c122e52c431cc6d76d11661a216d |
|
MD5 | f089e59c3039d04dfb09f99ed5548743 |
|
BLAKE2b-256 | 2fc04540a710273f6c6b0f59a990a6e8a0b7151672ffe2dd7174048bb5497d8f |