GithubHelp home page GithubHelp logo

sideeffects / stats_houdini Goto Github PK

View Code? Open in Web Editor NEW
2.0 7.0 2.0 738 KB

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

License: MIT License

Python 100.00%

stats_houdini's Introduction

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.

stats_houdini's People

Contributors

yelebonilla avatar lukemoore avatar

Stargazers

Yannic Schoof avatar Kthulhu avatar

Watchers

Cameron White avatar James Cloos avatar Edward Lam avatar  avatar Side Effects Dev avatar  avatar  avatar

Forkers

asdlei99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.