Skip to main content

django-action-framework (daf) provides the ability to generate a number of diverse interfaces from a single action definition. What is an action? It’s a function. By writing a function and providing a few hints about the characteristics of your function, you can:

  1. Generate a form view from the function with proper form validation.

  2. Generate an update view on a model object that is passed to the function.

  3. Generate a bulk update view on multiple objects. These objects can be parametrized over a function expecting one object, meaning your detail and bulk views share the same code when desired.

  4. Generate wizard views to collect function arguments over multiple steps, even if the steps are conditional.

  5. Natively integrate these views into the Django admin as model, detail, or bulk actions.

  6. Generate Django Rest Framework actions on your viewsets.

daf removes the boilerplate and cognitive overhead of maintaining validation logic, view logic, and update logic spread across Django views, models, admin interfaces, API endpoints, and other locations in a Django project. daf allows the engineer to focus on writing one clear and easily-testable piece of business logic while treating complex UI and APIs as an extension of the function rather than a piece of intertwined code.

For examples and a full tutorial of how to use django-action-framework, check out the docs.

Documentation

View the django-action-framework docs here.

Installation

Install django-action-framework with:

pip3 install django-action-framework

After this, add daf to the INSTALLED_APPS setting of your Django project.

Also ensure the following apps are in INSTALLED_APPS:

  • django.contrib.admin

  • django.contrib.auth

  • django.contrib.contenttypes

  • django.contrib.humanize

  • django.contrib.staticfiles

Contributing Guide

For information on setting up django-action-framework for development and contributing changes, view CONTRIBUTING.rst.

Primary Authors

  • @wesleykendall (Wes Kendall)

  • @romansul (Roman Sul)

  • @chang-brian (Brian Chang)

Metadata

Release files for django-action-framework 1.5.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-action-framework 1.5.0
File Size Uploaded
django-action-framework-1.5.0.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-action-framework 1.5.0
File Interpreter ABI Platform
django_action_framework-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.2 kB

Release files / django-action-framework-1.5.0.tar.gz

Download URL django-action-framework-1.5.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d4129b106faca376a13c685498d09fc326e88c3d329332916db562c780edcfb1
BLAKE2b-256 checksum
How to use checksums
a4230ad329645d7d980d5d9d8344cee245fa5dc8e5b826f56f819ebbd91afb94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.8.2 Linux/4.15.0-1103-aws

Release files / django_action_framework-1.5.0-py3-none-any.whl

Download URL django_action_framework-1.5.0-py3-none-any.whl
Size 41.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8119131d31bced4e8c9116f285ef1801b0790c548909b4ac857a80fab26f801d
BLAKE2b-256 checksum
How to use checksums
2634223389bb4f681643972f02e504a6efd33149a2966cfa373e476fab32fa9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.8.2 Linux/4.15.0-1103-aws

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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