$npx skillfedfor your agent

dry-rest-permissions

Rules based permissions for the Django Rest Framework

SkipPyPI WWW/HTTPReleased Jan 201888.4K downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dry_rest_permissions-0.1.10-py2.py3-none-any.whl
v0.1.10 · released 2018-01-31

No. The package is abandoned (last release 2018-01-31, no commits since 2022-12-26) and supports only Django 1.8–2.0 and DRF 3.5–3.7, which are far out of support. Modern Django and DRF projects have no upgrade path. Install only if maintaining legacy code on those exact versions.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Django 1.8–2.0 and Django REST Framework 3.5–3.7.
  • Modern Django/DRF versions are not supported.
  • Low install friction with no runtime dependencies.

License · maintenance · safety

BSD (permissive) — BSD license is permissive and imposes minimal restrictions on use or modification. You may use, modify, and distribute this package freely in commercial and private projects.

last release 2018-01-31 (3117 days) · last repo commit 2022-12-26 · 370 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 88,424 downloads/mo, #13,730 on PyPI

Verify before relying

# Install
pip install dry-rest-permissions

# In settings.py
INSTALLED_APPS = (
    ...,
    'dry_rest_permissions',
)

# In your model
from dry_rest_permissions.generics import DRYPermissions

class ProjectViewSet(viewsets.ModelViewSet):
    permission_classes = (DRYPermissions,)
    queryset = Project.objects.all()

# Define permissions on the model
class Project(models.Model):
    @staticmethod
    def has_read_permission(request):
        return True
    
    def has_object_read_permission(self, request):
        return True
  • Compatibility with Django versions beyond 2.0 and DRF versions beyond 3.7—the package has not been tested or updated for modern versions.
  • Whether the package works reliably with Python 3.7+ despite classifiers only listing up to 3.6.
Same gist for agents: .md · .json

What it is and what it does

dry-rest-permissions provides a framework for defining access control rules in Django REST Framework by attaching permission logic directly to your models rather than storing explicit permission grants in a separate table. Instead of requiring you to maintain a permissions table that must be updated whenever relationships change (e.g., when a user's admin status changes or ownership transfers), you write methods on your model that evaluate the current database state to determine whether a user can perform an action.

The package supports both global permissions (whether a user can perform an action on any object in a table) and object-level permissions (whether a user can perform an action on a specific row). It groups actions into read (list, retrieve) and write (create, update, destroy) categories, but also lets you define permissions for specific custom actions. You add the DRYPermissions class to your viewset, then define methods like `has_read_permission()` and `has_object_update_permission()` on your model to control access.

Use it for

  • Build multi-tenant SaaS apps where permissions depend on ownership, association membership, or role relationships that change frequently.
  • Define row-level access control for complex data models without maintaining explicit permission tables.
  • Grant different permissions for different actions on the same model (e.g., allow all users to create but only owners to update).
  • Implement permission rules that depend on related object state (e.g., a user can edit a project if they are an admin of the owning organization).

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last release 2018-01-31, no commits since 2022-12-26) and supports only Django 1.8–2.0 and DRF 3.5–3.7, which are far out of support. Modern Django and DRF projects have no upgrade path. Install only if maintaining legacy code on those exact versions.

Install

dry-rest-permissions on PyPI

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2018-01-31 and the repository has not received commits since 2022-12-26. Use only if your Django and DRF versions are pinned to the supported range (Django 1.8–2.0, DRF 3.5–3.7).

Requires Django 1.8–2.0 and Django REST Framework 3.5–3.7. Modern Django/DRF versions are not supported.

License in practice

BSD license is permissive and imposes minimal restrictions on use or modification. You may use, modify, and distribute this package freely in commercial and private projects.

Quickstart

# Install
pip install dry-rest-permissions

# In settings.py
INSTALLED_APPS = (
    ...,
    'dry_rest_permissions',
)

# In your model
from dry_rest_permissions.generics import DRYPermissions

class ProjectViewSet(viewsets.ModelViewSet):
    permission_classes = (DRYPermissions,)
    queryset = Project.objects.all()

# Define permissions on the model
class Project(models.Model):
    @staticmethod
    def has_read_permission(request):
        return True
    
    def has_object_read_permission(self, request):
        return True

Verify before relying

  • Compatibility with Django versions beyond 2.0 and DRF versions beyond 3.7—the package has not been tested or updated for modern versions.
  • Whether the package works reliably with Python 3.7+ despite classifiers only listing up to 3.6.

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 3,117 days since the last release
Last repo commit
First released
Downloads88,424 / month, #13,730 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Internet :: WWW/HTTP

Evidence: dry_rest_permissions-0.1.10-py2.py3-none-any.whl

Tags

Capabilities
django rest framework permissionsrules-based access control drfobject-level permissions djangorow-level permissions apimodel-based permission logicdrf permission frameworkimplicit permissions django
Topics
django-rest-frameworkaccess-controlabandoned

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 › “rules-based access control drf”

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also django-permissionedforms · djangorestframework-guardian · rest_condition · djangorestframework-role-filters · drf-access-policy · bridgekeeper · django-guardian · oschmod · rules · djangorestframework-api-key