django-reports

A Django app to easily create and render reports.


Keywords
django-reports
License
BSD-3-Clause
Install
pip install django-reports

Documentation

django-reports

https://badge.fury.io/py/django-reports.png https://travis-ci.org/grantmcconnaughey/django-reports.png?branch=master https://coveralls.io/repos/grantmcconnaughey/django-reports/badge.svg?branch=master&service=github

A Django app to easily create and render reports.

Documentation

The full documentation is at https://django-reports.readthedocs.org.

Quickstart

Install django-reports:

pip install django-reports

Then use it in a project:

from djreports import Report

class MyReport(Report):

    title = 'My Report'
    description = 'A list of important things'

    def get_data(self):
        return [
            ['Name', 'Age'],
            ['Grant', '24'],
            ['Erica', '24'],
        ]

report = MyReport()

And render the report in your template:

{% load djreport_tags %}

{% report_table report %}

Features

  • Create report objects out of Python lists.
  • Render them to an HTML table.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py

Credits

Tools used in rendering this package: