Share and Money Management  0.16
Functions | Variables
gui.reports Namespace Reference

Create detailed reports about of positions or according to the calendar. More...

Functions

def createPositionReport (pos, dest)
 Create a report of a single position. More...
 
def createPortfolioReport (start, end, dest)
 Create a report of portfolio changes between start and end date. More...
 

Variables

string position_report_tmpl
 HTML template for a position report. More...
 
string portfolio_report_tmpl
 HTML template for a report of the whole portfolio. More...
 

Detailed Description

Create detailed reports about of positions or according to the calendar.

The function used the Mako (http://www.makotemplates.org) to render those reports. Mako is a lightweight template library and it's written in pure Python.

Author
Carsten Grohmann <mail (at) carstengrohmann (dot) de>
License:
GPL version 2.0

Function Documentation

◆ createPortfolioReport()

def gui.reports.createPortfolioReport (   start,
  end,
  dest 
)

Create a report of portfolio changes between start and end date.

The report is created using the HTML template in portfolio_report_tmpl and stored in dest.

Parameters
startStart date
endEnd date
destA file-like object
See also
portfolio_report_tmpl

◆ createPositionReport()

def gui.reports.createPositionReport (   pos,
  dest 
)

Create a report of a single position.

The report is created using the HTML template in position_report_tmpl and stored in dest.

Parameters
posThe position to report
destA file-like object
See also
position_report_tmpl

Variable Documentation

◆ portfolio_report_tmpl

string gui.reports.portfolio_report_tmpl

HTML template for a report of the whole portfolio.

See also
createPortfolioReport()

◆ position_report_tmpl

string gui.reports.position_report_tmpl

HTML template for a position report.

See also
createPositionReport()