Skip to main content

Django wrappers for python-args functions.

Project description

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)

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-args-1.4.0.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

django_args-1.4.0-py3-none-any.whl (16.2 kB view hashes)

Uploaded Python 3

Supported by

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