bridgekeeper
Django permissions that work with QuerySets.
Decision gist · record as of 2026-08-14
Yes, if you are on Django 2.2 or 3.0 and Python 3.5–3.8 and need QuerySet-aware permissions. The permissive MIT license and zero runtime dependencies make it low-risk. However, dormancy since 2020 means no support for newer Django or Python versions—verify compatibility with your stack before committing, and be prepared to maintain a fork if you need to upgrade Django.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 2.2 or 3.0 and Python 3.5 or later; the package is not tested against newer Django versions.
- Installation is straightforward with no runtime dependencies.
- The package is dormant—last release was 2020-06-28 and last commit 2023-12-15—so expect no active maintenance or updates, though the repository remains unarchived.
License · maintenance · safety
MIT (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the package freely in commercial and private projects without restriction.
last release 2020-06-28 (2238 days) · last repo commit 2023-12-15 · 48 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 74,556 downloads/mo, #14,817 on PyPI
Alternatives
Verify before relying
pip install bridgekeeper
from bridgekeeper import rules
# Define a permission rule in code
rules.add_rule('can_edit_post', lambda user, post: post.author == user)
# Check permission on a QuerySet
allowed_posts = Post.objects.filter(rules.Q('can_edit_post', user=request.user))- Compatibility with Django versions released after 3.0 (package last tested on 3.0)
- Whether the package works with modern Python versions beyond 3.8
- Current state of the codebase and whether dormancy indicates stability or abandonment
What it is and what it does
Bridgekeeper is a Django permissions library that lets you define access rules in Python code rather than storing them in the database. Unlike django-rules, it uniquely supports both checking permissions on individual model instances and filtering QuerySets—so you can efficiently retrieve only the records a user is allowed to edit without duplicating permission logic.
The package has no runtime dependencies and installs cleanly. However, it is dormant: the last release was in June 2020 and the last commit in December 2023, with no active maintenance. It was tested on Django 2.2 and 3.0 with Python 3.5–3.8, so compatibility with newer Django or Python versions is unverified.
Use it for
- Build a list view that shows only the model instances a user has permission to edit, without writing permission checks twice
- Define role-based or attribute-based access rules in code and apply them consistently across instance checks and QuerySet filters
- Migrate from database-stored permissions to code-defined rules for easier version control and testing
- Implement custom permission logic (e.g., 'user can edit their own posts') that works seamlessly with Django ORM queries
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are on Django 2.2 or 3.0 and Python 3.5–3.8 and need QuerySet-aware permissions.
The permissive MIT license and zero runtime dependencies make it low-risk. However, dormancy since 2020 means no support for newer Django or Python versions—verify compatibility with your stack before committing, and be prepared to maintain a fork if you need to upgrade Django.
Install
bridgekeeper on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The package is dormant—last release was 2020-06-28 and last commit 2023-12-15—so expect no active maintenance or updates, though the repository remains unarchived.
Requires Django 2.2 or 3.0 and Python 3.5 or later; the package is not tested against newer Django versions.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely in commercial and private projects without restriction.
Quickstart
pip install bridgekeeper
from bridgekeeper import rules
# Define a permission rule in code
rules.add_rule('can_edit_post', lambda user, post: post.author == user)
# Check permission on a QuerySet
allowed_posts = Post.objects.filter(rules.Q('can_edit_post', user=request.user))
Verify before relying
- Compatibility with Django versions released after 3.0 (package last tested on 3.0)
- Whether the package works with modern Python versions beyond 3.8
- Current state of the codebase and whether dormancy indicates stability or abandonment
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 2,238 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,556 / month, #14,817 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8 |
Evidence: bridgekeeper-0.9-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django permissions queryset”
- bridgekeeperBridgekeeper provides a permissions system for Django projects where…
- djangorestframework-role-filtersAdds role-based access control to Django REST Framework viewsets,…
- django-data-browserProvides an interactive web interface for exploring and querying…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also rules · djangorestframework-role-filters · dry-rest-permissions · djangorestframework-guardian · django-guardian · rest_condition · django-query-builder · zope.security · django-cryptography · django-robots