Skip to content

Houdini-specific statistics data collection and reporting system, as an add-on to stats-core

License

Notifications You must be signed in to change notification settings

sideeffects/stats_houdini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stats_houdini

The stats_houdini package contains the implementation for a Houdini-specific statistics data collection and reporting system. This package is part of the Houdini Anonymous Usage Statistics project. With this package installed as an add-on of stats_core you will be able to visualize the data in your preferred way, creating your own menus and reports.

How to extend or modify menus?

The stats_houdini package comes with a default horizontal menu and a set of already made reports. But you can easily extend or modify the menus and add reports if you want.

The default menu is divided by report categories based on the information we collect from Houdini. You can extend/modify the default menu layout by changing the configuration of the Ordered Dictionary 'menu_and_report_options' in local_settings.py

The generic structure of the menu_and_report_options Dictionary is:

menu_and_report_options = OrderedDict([
    ("menu_internal_name", {
        "menu_url_prefix": "menu_url",
        "menu_name": "Menu Display Name",
        "menu_image": "menu_image_file_name", # Image to be shown in Home page. 
                                              # This image must be saved first 
                                              # in stats_core/stats_main/static
                                              # /images  
        "menu_description": '''Brief description of the menu and reports in it.''',
        
        # Menu options and reports (below some examples)
        "menu_options": [
            ("option_internal_name", "Option Display Name", [
                "ReportName1",
                "ReportName2",
                ..............
                "ReportNameN",
            ]),
           # ... more menu options with te same format
        ],
        # Which user group can access the reports in the current menu
        "groups": ['staff', 'r&d'],
    }),  
    
  # ... more menus with the same format above ...
])

How to create new reports?

The package gives you a set of more than 15 already made reports. Each report is implemented as a python class which inherit from one of the two main report generic classes, ChartReport or HeatMapReport, which inherit from Report. All the generic report classes and functions are implemented in stats_core/stats_main/genericreportclasses.py.

You can check stats_houdini/houdini_stats/reports/houdini.py to see how the existing reports were implemented.

About

Houdini-specific statistics data collection and reporting system, as an add-on to stats-core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages