{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/4"}],"enrichment":{"capability":"Bridgekeeper provides a permissions system for Django projects where permissions are defined in code rather than the database, and crucially, works on both individual model instances and QuerySets.","skillfed_tags":["django-permissions","access-control","queryset-filtering"],"use_cases":["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"],"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\u2014so you can efficiently retrieve only the records a user is allowed to edit without duplicating permission logic.\n\nThe 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\u20133.8, so compatibility with newer Django or Python versions is unverified.","worth_installing":"Yes, if you are on Django 2.2 or 3.0 and Python 3.5\u20133.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\u2014verify compatibility with your stack before committing, and be prepared to maintain a fork if you need to upgrade Django."},"id":"bridgekeeper","links":{"html":"https://skillfed.io/packages/bridgekeeper","md":"https://skillfed.io/packages/bridgekeeper.md","pypi":"https://pypi.org/project/bridgekeeper/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-06-28","license_spdx":null,"license_treatment":"permissive","name":"bridgekeeper","python_support":"supports_current","summary":"Django permissions that work with QuerySets."},"popularity":{"monthly_downloads":74556,"position":14817,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9"}
