rules is a tiny but powerful app providing object-level permissions to Django, without requiring a database. At its core, it is a generic framework for building rule-based systems, similar to decision trees. It can also be used as a standalone library in other contexts and frameworks. rules requires Python 2.7/3.4 or newer. It can optionally integrate with Django, in which case requires Django 1.11 or newer.