Skip to main content

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

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for falcon-avishan, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size falcon_avishan-0.0.2-py2-none-any.whl (9.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size falcon_avishan-0.0.2-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size falcon-avishan-0.0.2.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page