Simple Object Oriented layer for Flask.
Python
Switch branches/tags
Nothing to show
Latest commit 64aa118 Aug 19, 2016 @hoh committed on GitHub Merge pull request #1 from vokimon/master
full route and run arguments
Permalink
Failed to load latest commit information.
perfume accessing arguments just inside try Aug 12, 2016
.gitignore Initial commit Jan 1, 2013
LICENSE.txt Added source code Jan 1, 2013
MANIFEST.in Added source code Jan 1, 2013
README.md Update README.md Nov 25, 2013
setup.py Added source code Jan 1, 2013

README.md

Perfume

Perfume aims at making Flask-apps more Object-Oriented friendly by providing a base class to create them.

It's BSD licensed.

Usage:

  • inherit from Perfume
  • decorate your methods with route(path)

Perfume is Easy

from perfume import Perfume, route

class Hello(Perfume):

    @route('/')
    def hello(self):
        return "Hello World !"

if __name__ == "__main__":
    Hello().run()

And Easy to Setup

$ pip install Perfume
$ python hello.py
 * Running on http://localhost:5000/