Dashboard Apps
enrichsdk.app.utils
→
Utilities meant for the dashboard apps
EnrichAppConfig
→
Bases: AppConfig
Base class for Dashboard Apps. Each is an instance of Django App.
category = 'default'
class-attribute
instance-attribute
→
Category to which the app belongs
instanceid
property
→
Unique id associated with the app
name = 'default'
class-attribute
instance-attribute
→
Name of the app
resources
property
→
Attribute to return the resources (a html text string)
get_usecase()
→
Usecase to which the app belongs
get_default_configuration()
→
Default description for any app
enrichsdk.app.bases
→
get_template_dirs()
→
Template search paths..
Source code in enrichsdk/app/bases/__init__.py
policyapp
→
This is the base app setup for applications that have the following component:
policy interface (extensible) api pipeline (backend) result (could be arbitrary)
forms
→
views
→
AppBase()
→
A shareable view across apps
Source code in enrichsdk/app/bases/policyapp/views.py
api_policy_index(request, instancename)
→
Return the queryset
Source code in enrichsdk/app/bases/policyapp/views.py
get_fs_handle(cred)
→
Get s3/gcs filesystem handle..
Source code in enrichsdk/app/bases/policyapp/views.py
get_result(request, spec, policy)
→
Get data from s3 and other places
Source code in enrichsdk/app/bases/policyapp/views.py
policy_add(request, spec)
→
Add a policy
Source code in enrichsdk/app/bases/policyapp/views.py
policy_generate_config(request, spec)
→
Process the select columns form
Source code in enrichsdk/app/bases/policyapp/views.py
policy_index(request, spec)
→
Policy index...
Source code in enrichsdk/app/bases/policyapp/views.py
policy_select_columns(request, spec)
→
Select columns
Source code in enrichsdk/app/bases/policyapp/views.py
policy_select_dataset(request, spec)
→
Select datasets to process
Source code in enrichsdk/app/bases/policyapp/views.py
policy_toggle(request, spec, policy_id)
→
Activate/Deactivate policy
Source code in enrichsdk/app/bases/policyapp/views.py
result_detail(request, spec)
→
Show the available results
Source code in enrichsdk/app/bases/policyapp/views.py
result_index(request, spec)
→
Show the available results
Source code in enrichsdk/app/bases/policyapp/views.py
validate_policy_config(request, spec, config)
→
workflow_action(request, spec)
→
Show the workflows for the given data
Source code in enrichsdk/app/bases/policyapp/views.py
workflow_index(request, spec)
→
Show the workflows for the given data
Source code in enrichsdk/app/bases/policyapp/views.py
singlepageapp
→
This is the base app setup for applications that have the following component:
policy interface (extensible) api pipeline (backend) result (could be arbitrary)
views
→
AppBase()
→
A shareable view across apps
Source code in enrichsdk/app/bases/singlepageapp/views.py
get_fs_handle(cred)
→
Get s3/gcs filesystem handle..
Source code in enrichsdk/app/bases/singlepageapp/views.py
workflow_action(request, spec)
→
Show the workflows for the given data