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:
Generate a form view from the function with proper form validation.
Generate an update view on a model object that is passed to the function.
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.
Generate wizard views to collect function arguments over multiple steps, even if the steps are conditional.
Natively integrate these views into the Django admin as model, detail, or bulk actions.
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
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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| django-action-framework-1.5.0.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|