Skip to main content
django-report-tools
===================

Django Report Tools aims to take the pain out of putting charts, graphs
and tables into your Django projects. It provides a nice class-based
framework to restore a little bit of elegance to your application's
complex data views.


Features
--------

* Define your reports using the same syntax as Django forms and models
* Use built-in 'renderers' to avoid the hassle of dealing with various
charting technologies (currently only the Google Visualization Toolkit is supported)
* Enter chart data in a standardised format
* Build a simple API, allowing for the creation of chart exports or a 'save to dashboard' feature.


Release Notes - 0.2.1
---------------------

* Fixed a JSON encoding bug that broke Python 2.6 compatibility.
* Added a tox.ini and setup.py test support so I can test and prevent these sorts of
bug in the future.

Release Notes - 0.2
-------------------

* Updated for Django 1.5 compatibility
* Fixed an XSS vector in the Google Charts renderer
* Updated to the most recent GViz API


A fully-functional example report
-----------------

The following example implements a report with a simple pie chart, rendered
using the Google Visualization Toolkit.

::

from report_tools.reports import Report
from report_tools.chart_data import ChartData
from report_tools.renderers.googlecharts import GoogleChartsRenderer
from report_tools import charts


class MyReport(Report):
renderer = GoogleChartsRenderer

pie_chart = charts.PieChart(
title="A nice, simple pie chart",
width=400,
height=300
)

def get_data_for_pie_chart(self):
data = ChartData()

data.add_column("Pony Type")
data.add_column("Population")

data.add_row(["Blue", 20])
data.add_row(["Pink", 20])
data.add_row(["Magical", 1])

return data

Read on in the documentation for a full explanation and lots more examples.


Links
-----

Project Home: http://github.com/evanbrumley/django-report-tools

Documentation: http://django-report-tools.readthedocs.org


Installation
------------

To install django-report-tools simply use: ::

$ pip install django-report-tools

Or alternatively: ::

$ easy_install django-report-tools

Metadata

Release files for django-report-tools 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-report-tools 0.2.2
File Size Uploaded Provenance
django-report-tools-0.2.2.tar.gz 32.5 kB Without provenance Details

Release files / django-report-tools-0.2.2.tar.gz

Download URL django-report-tools-0.2.2.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aa5478c793ba728c657361e9167b20eb5d2bf045ec7519d458511f7898d60b54
BLAKE2b-256 checksum
How to use checksums
12658a24237f99ac7e3ca846de8a1b9a5299ed7a42028a6431c0c241c998cc7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-report-tools 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page