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 Python 3

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

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page