Skip to main content

privileges

privileges makes segmenting authenticated users easy and extensible.

Unlike Django permissions, privileges is not tied to operations on individual models. It operates at a higher level of abstraction and is instead concerned more with providing the site developer complete freedom in determining who can do what. There certainly is some overlap with the built in permissions system, and while you could use privileges to replace it, at least large parts of it, that is not the aim of this app.

Instead, think of privileges allowing the site developer to control access to certain features. Operating at the template and view layers the site developer can paint as broad or as fine of strokes to suit their needs.

It is extensible in the sense that the site developer can define and register their own privilege validation handlers. In fact they must define at least one handler. There is a template tag for checking privileges in templates and a decorator for checking privileges when a view is called.

There is a model that stores the named privileges which are nothing more than named slugs. The records carry no special meeting to privileges in isolation but depend on the site developer to impart meaning through reference in his site.

Sponsorship

development sponsored by Midwest Communications

Release files for privileges 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privileges 0.1
File Size Uploaded
privileges-0.1.tar.gz 9.9 kB Details

Release files / privileges-0.1.tar.gz

Download URL privileges-0.1.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea18cfefb617e0cebc83c9500b1c43d239e03d98e9e70e023d068d51b5857da8
BLAKE2b-256 checksum
How to use checksums
1c760adaf30f08c61fabcbb8807e9c807ae2980bf861b6cc8b429ebc8156e6ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page