This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Basic user model, authenticator and authorizer for lribeiro.cherrypy.authorizer and neomodel

Usage:

import cherrypy

from lribeiro.cherrypy.authorizer import authorize
from lribeiro.cherrypy.authorizer.authentication import AuthControllerDefaultDispatcher

from lribeiro.cherrypy.authorizer.neomodel.auth import authenticator, authorizer


class Root:
    @cherrypy.expose
    def index(self):
        return 'index'

    @cherrypy.expose
    @authorize
    def auth_required(self):
        return 'auth required'

    @cherrypy.expose
    @authorize({'read': 'page', 'write': 'log'})
    def authorized(self):
        return 'authorized'

    @cherrypy.expose
    @authorize({'edit': ['page', 'site']})
    def unauthorized(self):
        return 'unauthorized'

config = {
    '/': {
        'tools.sessions.on': True,
        'tools.authorizer.on': True,
        'auth.authenticator': authenticator,
        'auth.authorizer': authorizer,
        'auth.login_page': '/login'
    }
}

if __name__ == '__main__':
    root = Root()
    root.auth = AuthControllerDefaultDispatcher()

    cherrypy.quickstart(root, '/', config)
Release History

Release History

1.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lribeiro.cherrypy.authorizer.neomodel-1.0.1-py3-none-any.whl (5.9 kB) Copy SHA256 Checksum SHA256 py3 Wheel Sep 8, 2014
lribeiro.cherrypy.authorizer.neomodel-1.0.1.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Sep 8, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting