<commit_before>===============================
django-universal-view-decorator
===============================

.. image:: https://img.shields.io/travis/pasztorpisti/django-universal-view-decorator.svg?style=flat
    :target: https://travis-ci.org/pasztorpisti/django-universal-view-decorator
    :alt: build

.. image:: https://img.shields.io/coveralls/pasztorpisti/django-universal-view-decorator/master.svg?style=flat
    :target: https://coveralls.io/r/pasztorpisti/django-universal-view-decorator?branch=master
    :alt: coverage

.. image:: https://img.shields.io/github/tag/pasztorpisti/django-universal-view-decorator.svg?style=flat
    :target: https://github.com/pasztorpisti/django-universal-view-decorator
    :alt: github

.. image:: https://img.shields.io/github/license/pasztorpisti/django-universal-view-decorator.svg?style=flat
    :target: https://github.com/pasztorpisti/django-universal-view-decorator/blob/master/LICENSE.txt
    :alt: license: MIT

.. contents::

------------
Introduction
------------

In django you can implement views in two different standard ways (regular view function, class based view) and the same
project can make use of both techniques in parallel. In case of class based views I've seen several ways of decorating
the view. Sometimes the effect of these decoration techniques is a little bit different and all of them have their use.
With this library I'm introducing just another way to decorate view classes along with a unified way to implement
view decorators that work the same way on regular view functions, view classes, and also on view class methods. Before
describing my solution let's list the most popular widely used view decoration techniques.<commit_msg>adding the code quality badge<commit_after>===============================
django-universal-view-decorator
===============================

.. image:: https://img.shields.io/travis/pasztorpisti/django-universal-view-decorator.svg?style=flat
    :target: https://travis-ci.org/pasztorpisti/django-universal-view-decorator
    :alt: build

.. image:: https://img.shields.io/codacy/c1087ff8de9a43a0bd87caefc7c96a81/master.svg?style=flat
    :target: https://www.codacy.com/app/pasztorpisti/django-universal-view-decorator
    :alt: code quality

.. image:: https://img.shields.io/coveralls/pasztorpisti/django-universal-view-decorator/master.svg?style=flat
    :target: https://coveralls.io/r/pasztorpisti/django-universal-view-decorator?branch=master
    :alt: coverage

.. image:: https://img.shields.io/github/tag/pasztorpisti/django-universal-view-decorator.svg?style=flat
    :target: https://github.com/pasztorpisti/django-universal-view-decorator
    :alt: github

.. image:: https://img.shields.io/github/license/pasztorpisti/django-universal-view-decorator.svg?style=flat
    :target: https://github.com/pasztorpisti/django-universal-view-decorator/blob/master/LICENSE.txt
    :alt: license: MIT

.. contents::

------------
Introduction
------------

In django you can implement views in two different standard ways (regular view function, class based view) and the same
project can make use of both techniques in parallel. In case of class based views I've seen several ways of decorating
the view. Sometimes the effect of these decoration techniques is a little bit different and all of them have their use.
With this library I'm introducing just another way to decorate view classes along with a unified way to implement
view decorators that work the same way on regular view functions, view classes, and also on view class methods. Before
describing my solution let's list the most popular widely used view decoration techniques.
{'fraction_non_alphanumeric': 0.14211533205793933, 'fraction_numerical': 0.004372779447936594, 'mean_word_length': 4.43026706231454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4167902', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1026, 'n_words': 296}