Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A Generic Access List Library

Project Description

Spiff Guard is a library implementing generic access lists for Python. It was designed to provide a clean API, high security and high scalability. Working with an ACL is as simple as this:

from Guard import *
guard   = DB(db_connection)
group   = ResourceGroup("My Group")
user    = Resource("My User")
website = ResourceGroup("My Website")
view    = Action("View")
write   = Action("Edit")
guard.register_type([Resource, ResourceGroup, Website])
guard.add_action([view, write])
guard.add_resource([user, group, website])
guard.grant(group, view, website)
guard.grant(user,  edit, website)
if guard.has_permission(user, view, website):
    print 'Permission granted.'

Spiff Guard’s features include recursion, groups, Python type awareness, inverse lookup, and a lot more. For a more complete example, have a look into the README file included with the package. You may also look at the API documentation.

Release History

Release History

This version
History Node

1.9.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
SpiffGuard-1.9.2.tar.gz (18.6 kB) Copy SHA256 Checksum SHA256 Source Jan 9, 2009

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