falcon-avishan-0.0.2
توضیحات
Avishan is just an set of tools
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | falcon-avishan-0.0.2 |
| نام | falcon-avishan |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Morteza Afshari |
| ایمیل نویسنده | afshari9978@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/afshari9978/falcon-avishan |
| آدرس اینترنتی | https://pypi.org/project/falcon-avishan/ |
| مجوز | MIT |
==============
Falcon Avishan
==============
Avishan is a set of tools for building fast, comfortable and reliable falcon apps.
Quick start
-----------
1. On linux remember to install this packages::
pip install cython
pip install -v --no-binary :all: falcon
2. Create virtual environment for your project::
sudo -H pip3 install virtualenv
3. 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
4. At the end of your file, add this to create server::
stage = AvishanFalconStage()
5. 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
--------
نیازمندی
| مقدار | نام |
|---|---|
| ==0.29.15 | Cython |
| ==2.0.0 | falcon |
نحوه نصب
نصب پکیج whl falcon-avishan-0.0.2:
pip install falcon-avishan-0.0.2.whl
نصب پکیج tar.gz falcon-avishan-0.0.2:
pip install falcon-avishan-0.0.2.tar.gz