Skip to main content

reportgen is a Python library for creating and updating analysis report.

Project description

Release v0.1.8

reportgen is a Python library for creating and updating analysis report.

Release History


  • Add subpackages metrics and preprocessing which contain entropy銆乄OE銆乨iscretization etc..
  • Add associate analysis(FP growth): frequent_itemsets and association_rules.
  • Add functions :ClassifierReport,type_of_var.
  • Fix the logic of package.
  • Fix some bugs.


  • Add function rpt.plot().
  • Support drawing on the exist matplotlib figure and Report file
  • Fix some bugs.


  • Add function AnalysisReport, it can plot the general data to pptx files.
  • Fix some bugs.


  • Create.

Feature Support

reportgen has the following capabilities, with many more on the roadmap:

  • get all the texts in the pptx file
  • get all the images in the pptx file
  • add one slide simply about charts/tables/images with pandas in a pptx file
  • add slides simply about charts/tables/images with pandas in a pptx file

Quick Start

  1. Get texts or images in a pptx file.
# import
import reportgen as rpt
# Open a pptx file
# We can get the texts and images simply.
# All the images will saved in folder '.\\images\\'.
  1. Created a analysis report.
import reportgen as rpt
      import pandas as pd
      # Open a pptx file
      p=rpt.Report('template.pptx')# The parameters can be defaulted
      # add a cover
      p.add_cover(title='A analysis report powered by reportgen')
      # add a chart slide
      title='the scores report',summary='Our class got excellent results',footnote='This is a footnote.')
# add a table slide
      p.add_slide(data={'data':data,'slide_type':'table'},title='the scores report',summary='Our class got excellent results',footnote='This is a footnote.')
      # add a textbox slide
      data='This a paragraph. \n'*4
      p.add_slide(data={'data':data,'slide_type':'textbox'},title='This is a textbox slide',summary='',footnote='')
      # add a picture slide
      p.add_slide(data={'data':data,'slide_type':'picture'},title='This is a picture slide')'analysis report.pptx')

In general, I divide a slide of analysis report into four parts: title銆乻ummary銆乫ootnote and the body data. And the body are one or more charts/textboxs/tables/pictures.

The add_slide which is the most commonly used function has the following parameters:


For example, we can draw a chart on the left side, and insert a picture on the right.

import reportgen as rpt
import pandas as pd

As a lazy person, I also provide a solution with less scripts.

import reportgen as rpt
imgs=['.\\images\\'+img for img in os.listdir('.\\images\\')]
# more functions way
slides_data=[{'title':'ppt{}'.format(i),'data':data} for i in range(10)]

Now you can get a glance at any data.

import pandas as pd
import reportgen as rpt

rpt.AnalysisReport(data,filename='Analysis Report of Scores.pptx');

The scripts will make a pptx file which analysis all the fields of the data in a visual way.


  • support export analysis report to html
  • make the chart_type recommend more intelligence


If you have any question,you can email to gasongjian AT And if you have a WeChat account,you can focus to my WeChat Official Account: gasongjian.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
reportgen-0.1.8-py2.py3-none-any.whl (2.5 MB) Copy SHA256 hash SHA256 Wheel py2.py3
reportgen-0.1.8.tar.gz (2.4 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page