Skip to main content

Easily create actions and various interfaces around them.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-action-framework-1.3.3.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_action_framework-1.3.3-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file django-action-framework-1.3.3.tar.gz.

File metadata

  • Download URL: django-action-framework-1.3.3.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/4.15.0-1077-aws

File hashes

Hashes for django-action-framework-1.3.3.tar.gz
Algorithm Hash digest
SHA256 5ffdd32666641960aae4b5568ecccedcc84bc9cf8128d0c1ca384725b75af57d
MD5 69054b368e308ba0a23c9267a178ce22
BLAKE2b-256 94670aee8634a95ceddca926080f7ff36af6610f86c0cfa0afdd206f7e277d2f

See more details on using hashes here.

File details

Details for the file django_action_framework-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_action_framework-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2dfa4c83b8cb38036a5da21e38ddcaf5581eafe5aaa0c141f0e2075653aa6b
MD5 a7b9339d632b0a7182c56d723e265573
BLAKE2b-256 f65fec356e3fd339c631b3573caa8b8baee8fe6ce62768eff5cc30fbf080ab7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page