Metadata-Version: 1.0
Name: pysi
Version: 0.8.0
Summary: Fast and simple micro web framework
Home-page: http://bitbucket.org/imbolc/pysi/
Author: Imbolc
Author-email: imbolc@imbolc.name
License: BSD
Description: PySi
        ====
        
        Links
        -----
        
        - repository: <https://bitbucket.org/imbolc/pysi/>
        - russian docs: <http://pysi.org/my-modules/pysi/>
        
        Hello world
        -----------
            import pysi
            
            @pysi.view('/')
            def home(rq):
                return 'Hello world!'
                
            if __name__ == '__main__':
                from wsgiref.simple_server import make_server
                make_server('', 8000, pysi.App()).serve_forever()
        
        Another example
        ---------------
        	from pysi import cfg, view, redirect, abort
        	from models import Post
        	from forms import CommentForm
        
            @view('/post/<int:id>/', 'blog/post_details.html')
            def post_details(rq, id):
                post = Post.get(id)
                if not post:
                    abort(404)
                form = CommentForm(rq.form)
                if rq.method == 'POST' and form.validate():
                    post = Post()
        			form.populate_obj(post)
                    post.save()
                    rq.flash('Comment added', 'success')
                    return redirect('blog.post_details')
                return {'form': form, 'post': post}
        	
Keywords: web framework
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
