Metadata-Version: 1.1
Name: pyramid-rest-route
Version: 0.2
Summary: Simple helper for creating rest route and view
Home-page: https://github.com/rickmak/pyramid_rest_route
Author: Rick Mak
Author-email: rick.mak@gmail.com
License: MIT
Description: Pyramid helper to create restful route.
        
        Using URL Dispatch and class base view.
        
        
        At pyramid booststrap
        
        ```
        def main(global_config, **settings):
            config = Configurator(settings=settings)
            config.include("pyramid_resources")
        ```
        
        Registering route with `AppView`
        ```
            config.add_rest_route('app', 'apps', AppView,
                members={
                    'basic': 'edit',
                    'messaging': 'view',
                    'admin': 'edit',
                },
                collections={
                    'paid': 'admin',
                },
                factory=RootFactory)
        
        ```
        
        A simple `AppView` implementation
        
        ```
        class AppView(RestView):
        
            renderers = {
                'basic': '/app/basic.mako'
            }
        
            def basic(self):
                return {
                    'location': 'Render at basic.mako'
                }
        
            @view_config(
                route_name='paid_app',
                renderer='json',
                custom_predicates=(allowed_extension(*['.json']),)
                permission='read')
            def paid(self):
                return {
                    "message": "using json renderer on json extension"
                }
        
        
        ```
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Environment :: Web Environment
Classifier: Development Status :: 3 - Alpha
