Skip to main content

Django Permissions Provisioner

https://img.shields.io/pypi/v/django-perms-provisioner.svg https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json https://github.com/labd/django-perms-provisioner/actions/workflows/python-test.yml/badge.svg

This package works like the standard Django loaddata / dumpdata commands only it’s used for creating auth.Group objects with their provided permissions.

Requirements

  • Python >= 3.11

  • Django >= 5.2

Installation

pip install django_perms_provisioner

Then the only thing left before you can start using the Django Permissions Provisioner is adding it to you installed apps.

INSTALLED_APPS = [
    "django_perms_provisioner",
]

Configuration

Configuration can either be done via providing a YAML or JSON file. Your file needs to have one of the following extensions: .json, .yaml, .yml, and their approriate contents of course.

Examples:

---
groups:
  - name: Group Name
    permissions:
      sites:
         - site.add_site
         - site.change_site
       wagtailadmin:
         - admin.access_admin
{
  "groups" [{
    "name": "Group Name",
    "permissions": {
      "sites": ["site.add_site", "site.change_site"],
      "wagtailadmin": ["admin.access_admin"]
    }
  }]
}

It is also possible to only create groups this can be done by just leaving out the permissions.

Example:

---
groups:
  - name: Group Name
  - name: Next Group Name

Usage

To load permissions from a configuration file

./manage.py loadperms permissions.yaml

Or to dump permissions to a configuration file

./manage.py dumpperms > permissions.yaml

Releasing

Changes are tracked with changie. Add a changelog entry to every pull request with a user-facing change:

changie new

When entries are merged to the default branch, a release pull request is opened (or updated) automatically. Merging that pull request tags the release, creates the GitHub release and publishes the package to PyPI.

Metadata

Release files for django-perms-provisioner 0.1.0

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

Source distribution (sdist)

Source distribution for django-perms-provisioner 0.1.0
File Size Uploaded Provenance Actions
django_perms_provisioner-0.1.0.tar.gz 7.7 kB With provenance Details for django_perms_provisioner-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-perms-provisioner 0.1.0
File Interpreter ABI Platform Actions
django_perms_provisioner-0.1.0-py3-none-any.whl Python 3 none any Details for django_perms_provisioner-0.1.0-py3-none-any.whl

Total release size: 15.1 kB

Release files / django_perms_provisioner-0.1.0.tar.gz

Download URL django_perms_provisioner-0.1.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9580c5e7594db08062303449cf27be49a35e163bd98d8d7b65b03ca04ead266e
BLAKE2b-256 checksum
How to use checksums
dfadb1e8c8c11c4ec2430a55b3a7b2a9e90f8987b25c372d5da87d2b62faf037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / django_perms_provisioner-0.1.0-py3-none-any.whl

Download URL django_perms_provisioner-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf0ec5601fadd809a3d21f5ec84a5e60cc193866d30fb3745e8da685a4f2b654
BLAKE2b-256 checksum
How to use checksums
62a4fde9115544ccfc6a54bf0a99dd00e40f40ec9b9b79216e400cd354b7491b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for django-perms-provisioner 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_perms_provisioner-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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