<commit_before>django-enumfield
==============

Provides an enumeration Django model field (using IntegerField) with reusable enums and transition validation.

Installation
------------

Install django-enumfield in your python environment

.. code:: sh

    $ pip install django-enumfield

Usage
-----

Create an Enum-class and pass it as first argument to the Django model EnumField.

.. code:: python
<commit_msg>add travis-ci build status image<commit_after>django-enumfield
==============

Provides an enumeration Django model field (using IntegerField) with reusable enums and transition validation.

.. image:: https://travis-ci.org/5monkeys/django-enumfield.png?branch=master

Installation
------------

Install django-enumfield in your python environment

.. code:: sh

    $ pip install django-enumfield

Usage
-----

Create an Enum-class and pass it as first argument to the Django model EnumField.

.. code:: python

{'fraction_non_alphanumeric': 0.1272923408845739, 'fraction_numerical': 0.0010787486515641855, 'mean_word_length': 3.686868686868687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, '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': '3156428', 'n_tokens_mistral': 250, 'n_tokens_neox': 238, 'n_words': 94}