Skip to main content

Reusable library to build business applications fast

Project description

Viewflow

The low-code for developers with yesterday's deadline

build coverage pypi-version py-versions

Viewflow is a low-code library for building business applications with Django. It gives you ready-made components for user management, workflows, and reporting. You write less code but keep full control. You can customize everything and connect it to your existing systems.

Build full-featured business applications in a few lines of code. Viewflow ships as one package with everything included. Each part works on its own, but they all work well together.

GPT assisted with Viewflow documentation: Viewflow Pair Programming Buddy

Viewflow comes in two versions:

  • Viewflow Core: Open-source library with base classes. Build your own solution on top.
  • Viewflow PRO: Full package with ready-to-use features and third-party integrations. Commercial license allows private forks and modifications.
drawing

Features

  • Modern, responsive interface with SPA-style navigation
  • Reusable workflow library for BPMN processes
  • Built-in CRUD for complex forms and data
  • Reporting dashboard included
  • Small, easy-to-learn API

Installation

Viewflow works with Python 3.8+ and Django 4.0+

Viewflow:

pip install django-viewflow

Viewflow PRO:

pip install django-viewflow-pro  --extra-index-url https://pypi.viewflow.io/<licence_id>/simple/

Add to INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        ....
        'viewflow',
        'viewflow.workflow',  # if you need workflows
    ]

Quick start

Here is a pizza ordering workflow example.

1. Create a model for process data

Viewflow provides a Process base model. Use jsonstore fields to store data without extra database joins:

    from viewflow import jsonstore
    from viewflow.workflow.models import Process

    class PizzaOrder(Process):
        customer_name = jsonstore.CharField(max_length=250)
        address = jsonstore.TextField()
        toppings = jsonstore.TextField()
        tips_received = jsonstore.IntegerField(default=0)
        baking_time = jsonstore.IntegerField(default=10)

        class Meta:
            proxy = True

2. Create flows.py with your workflow

Define a flow class with steps. Use CreateProcessView and UpdateProcessView for the forms:

    from viewflow import this
    from viewflow.workflow import flow
    from viewflow.workflow.flow.views import CreateProcessView, UpdateProcessView
    from .models import PizzaOrder

    class PizzaFlow(flow.Flow):
        process_class = PizzaOrder

        start = flow.Start(
            CreateProcessView.as_view(
                fields=["customer_name", "address", "toppings"]
            )
        ).Next(this.bake)

        bake = flow.View(
            UpdateProcessView.as_view(fields=["baking_time"])
        ).Next(this.deliver)

        deliver = flow.View(
            UpdateProcessView.as_view(fields=["tips_received"])
        ).Next(this.end)

        end = flow.End()

3. Add URLs

Register the workflow with the frontend:

    from django.urls import path
    from viewflow.contrib.auth import AuthViewset
    from viewflow.urls import Application, Site
    from viewflow.workflow.flow import FlowAppViewset
    from my_pizza.flows import PizzaFlow

    site = Site(
        title="Pizza Flow Demo",
        viewsets=[
            FlowAppViewset(PizzaFlow, icon="local_pizza"),
        ]
    )

    urlpatterns = [
        path("accounts/", AuthViewset().urls),
        path("", site.urls),
    ]

4. Run migrations and start the server

Run migrations, start Django, and open the browser. You can now create and track pizza orders through the workflow.

Next steps: https://docs.viewflow.io/workflow/writing.html

Documentation

Latest version: http://docs.viewflow.io/

Version 1.xx: http://v1-docs.viewflow.io

Demo

http://demo.viewflow.io/

Cookbook

Code samples and examples: https://github.com/viewflow/cookbook

Stay updated

Subscribe to our newsletter for release notes, Django low-code tips, and notes on shipping business apps fast.

License

Viewflow is an Open Source project licensed under the terms of the AGPL license - The GNU Affero General Public License v3.0 with the Additional Permissions described in LICENSE_EXCEPTION

The AGPL license with Additional Permissions is a free software license that allows commercial use and distribution of the software. It is similar to the GNU GCC Runtime Library license, and it includes additional permissions that make it more friendly for commercial development.

You can read more about AGPL and its compatibility with commercial use at the AGPL FAQ

If you use Linux already, this package license likely won't bring anything new to your stack.

Viewflow PRO has a commercial-friendly license allowing private forks and modifications of Viewflow. You can find the commercial license terms in COMM-LICENSE.

Changelog

2.3.0 2026-06-30

  • Fix viewflow.fsm chart generation crashing for Enum states and State.ANY markers (#476)
  • Use the localized status label (get_status_display) in the default Task and Process briefs (#504)
  • Add a building-with-viewflow skill for AI coding assistants (skill/, beta), and ship llms.txt, llms-full.txt and AGENTS.md on docs.viewflow.io (#498)
  • Fix the vf-field-input readonly attribute not being treated as a boolean; it now defaults to false and is coerced like disabled/required (#499), applied consistently across the field widgets, and added readonly support to the password and textarea widgets
  • Fix process cancel being allowed with only view permission; it now requires the manage permission. has_view_permission/has_manage_permission also honor object-level (e.g. django-guardian) permissions when an object is passed
  • Make Condition/Permission generic over the flow type, so typed predicates like Callable[[Publication], bool] are accepted in state.transition(...)
  • Update frontend and tooling dependencies to their latest within-major versions
  • Upgrade the build to vite 7 and vite-plugin-static-copy 4; migrate the @material typography imports to the modern Sass @use API (generated CSS unchanged) and drop the unused babel-core@4 dev dependency
  • Upgrade vanilla-jsoneditor 0.23 → 3 (bundles svelte 5); the JSON field editor API is unchanged

2.2.15 2025-12-24

  • Fix form button name/value lost on resubmission after validation error with Turbo
  • Fix subprocess double execution when completing synchronously

2.2.14 2025-11-24

  • Add Django 6.0 compatibility (requires Python 3.12+)
  • Improve error handling for permission creation in multiple database configurations
  • Fix BPMN export to include name attribute for gateway nodes (flow.If)

2.2.13 2025-09-24

  • Fix checkbox field error message styling to display in red color

2.2.12 2025-07-25

  • Allow to extend and override process_data template

2.2.11 2025-05-14

  • Return .Avaialble(..) for the start node

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_viewflow-2.3.1.tar.gz (24.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_viewflow-2.3.1-py3-none-any.whl (24.8 MB view details)

Uploaded Python 3

File details

Details for the file django_viewflow-2.3.1.tar.gz.

File metadata

  • Download URL: django_viewflow-2.3.1.tar.gz
  • Upload date:
  • Size: 24.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for django_viewflow-2.3.1.tar.gz
Algorithm Hash digest
SHA256 05911179bd8d0b1d335830bf1148e0680da49e20e08cb87cd322e88e3b4a3aa0
MD5 d0f4711a023626c848147b72bf425863
BLAKE2b-256 baafc12bb0d4206d0ad54828e356018f3b529f89080de5f6a49ec2f35ef80b84

See more details on using hashes here.

File details

Details for the file django_viewflow-2.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_viewflow-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 188f148636906ccc73d570f8b9889e5e6ee0272ea3f4b30d3f3390ac8c077f66
MD5 93b8c5c404ef341cfcc80cdef20ec9f1
BLAKE2b-256 719f2e13c890cb6ab957afa0fcf36b216aacc57d2b891c5d1291fec64931cb8d

See more details on using hashes here.

Supported by

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