Skip to main content

No project description provided

Project description

SCF_FSM_PACKAGE

A resuable django application that can handle transition and workflow's in your project .

Authors

Installation

Install scf_fsm_package with pip

pip install finflo

In your django application , browse to installed_apps section in settings.py and add this ,

INSTALLED_APPS = [
    'finflo'
]

if you want party you can customize whatever you want add this finflo section in your settings.py

FINFLO = {
    'FROM_PARTY' : 'django_app.model_name', # example

    'FROM_PARTY' : 'accounts.party',
    'TO_PARTY' : 'accounts.party'
}

or else

FINFLO = {
    'FROM_PARTY' : None,
    'TO_PARTY' : None
}

now navigate to the middleware section and add the finflo middleware

MIDDLEWARE = [
    'finflo.middleware.TransitionUserMiddleware',
]

Additional Api (optional)

In your application's urls.py , you can include finflo's api urls for browsable api's

** make sure that you have installed DjangoRestFramework

Now add this peice of code in your urls.py

urlpatterns = [
    path('', include('finflo.urls'))
]

Usage/Examples

  1. import your transition function from finflo.views

  2. The transition function requires 4 positional arguments :

  3. Arguments Data_Type
    type str
    action str
    stage int
    id (optional) int
from finflo.views import finflo

myhandler = finflo()

# example function

def index():
    myhandler.transition(type = "PROGRAM",action = "submit" ,stage = 0)
    return HttpResponse({"data"})

Tech Stack

1. Python
2. Django==3.2.5
3. Django-rest-framework

API

Api urls

Api URL's METHOD QUERY_PARAMS
localhost/model/ GET ?type=PROGRAM
localhost/action/ GET NONE
localhost/action/ POST NONE
localhost/workflowitems/ GET NONE
localhost/workevents/ GET NONE

Support

For support, email support@venzo.com .

Future

  1. postgres support
  2. next_Avail_transitions

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

finflo-1.4.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

finflo-1.4.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file finflo-1.4.0.tar.gz.

File metadata

  • Download URL: finflo-1.4.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for finflo-1.4.0.tar.gz
Algorithm Hash digest
SHA256 241134d2aafef389ca1643a51a4d3086d73e00f4c94db821b5374814c57ed8ee
MD5 5eb98f91f8cc9702c92e3726e8a37d20
BLAKE2b-256 810e15392e1b6753f2f0f8dc6a101581e9cfe444ae10a27749fbdc3d31839b62

See more details on using hashes here.

File details

Details for the file finflo-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: finflo-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for finflo-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 493e2cb6075aa194f8fcc625ba6bcef147f5b3349b056cca82780c5ecbc12611
MD5 84b0e6f72f2b8a7afb426a045fdfcbaf
BLAKE2b-256 9aab1005598d914e49e6d17180562632b160902d8e9e900f046b5c3941856204

See more details on using hashes here.

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