<commit_before>django-lb-workflow
===========

.. image:: https://secure.travis-ci.org/vicalloy/django-lb-workflow.svg?branch=master
   :target: http://travis-ci.org/vicalloy/django-lb-workflow

.. image:: https://coveralls.io/repos/github/vicalloy/django-lb-workflow/badge.svg?branch=master
   :target: https://coveralls.io/github/vicalloy/django-lb-workflow?branch=master

Reusable workflow library for Django<commit_msg>update README.rst<commit_after>django-lb-workflow
==================

.. image:: https://secure.travis-ci.org/vicalloy/django-lb-workflow.svg?branch=master
   :target: http://travis-ci.org/vicalloy/django-lb-workflow

.. image:: https://coveralls.io/repos/github/vicalloy/django-lb-workflow/badge.svg?branch=master
   :target: https://coveralls.io/github/vicalloy/django-lb-workflow?branch=master

Reusable workflow library for Django.

`django-lb-workflow` supports Django 1.10+ on Python 3.4+.


Installation
============

Workflow is on PyPI so all you need is: ::

    pip install django-lb-workflow

Testing
=======

Running the test suite is as simple as: ::

    make test

Run test project
================

Running the test suite is as simple as: ::

    pip install -r testproject/requirements.txt
    python testproject/wfgen.py
    make run

Demo for create a new flow
==========================

You can find demo code in `lbworkflow/tests/leave`.

`testproject/wfgen.py` is a demo for how to generate base code for a flow. The model for this flow is in `/lbworkflow/tests/issue`.
{'fraction_non_alphanumeric': 0.17216358839050133, 'fraction_numerical': 0.0032981530343007917, 'mean_word_length': 4.285714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '6359337', 'n_tokens_mistral': 514, 'n_tokens_neox': 483, 'n_words': 112}