Skip to main content

django-args is the Django wrapper on python-args.

python-args provides the ability to decorate functions with validators, context, and default value processors. django-args takes this a step further, allowing any function decorated with python-args to seamlessly integrate with Django form views and form wizards.

For example, djarg.views.FormView automatically constructs a Django FormView on a python function and maps the form fields to the function arguments. Assuming the function is wrapped with arg.validators, django-args will seamlessly bind the validators to the form. This same concept is extended to bulk views and form views offered by django-args.

Along with this, django-args also helps eliminate the burden of passing around variables from views to forms for doing simple initializations (choice fields, etc) and other boilerplate that can become difficult to follow as a project grows.

Check out the docs for more information on how you can use django-args for your project.

Documentation

View the django-args docs here.

Installation

Install django-args with:

pip3 install django-args

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

Contributing Guide

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

Primary Authors

  • @wesleykendall (Wes Kendall)

Metadata

Release files for django-args 1.4.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-args 1.4.0
File Size Uploaded
django-args-1.4.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-args 1.4.0
File Interpreter ABI Platform
django_args-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / django-args-1.4.0.tar.gz

Download URL django-args-1.4.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
053a309a09215e832020017d924e543d47cace640c113e2dc089c111fae8ff95
BLAKE2b-256 checksum
How to use checksums
31b16949984796c7db150cdf59767d14837cf20eab4de433dd3ce1bd81c39430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.2 Linux/4.15.0-1077-aws

Release files / django_args-1.4.0-py3-none-any.whl

Download URL django_args-1.4.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3923f1dde13b853095af979fdb8d6f9816387bfb44df4959ea6850d02ee55e0
BLAKE2b-256 checksum
How to use checksums
7e9c2a6c9c181b2036d484ec95acf6c83ef4d37d506716d80d3bad88d0980ed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.2 Linux/4.15.0-1077-aws

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.0

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