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.

Source Distribution

falcon-avishan-0.0.2.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distributions

falcon_avishan-0.0.2-py3-none-any.whl (9.5 kB view hashes)

Uploaded py3

falcon_avishan-0.0.2-py2-none-any.whl (9.5 kB view hashes)

Uploaded py2

Supported by

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