otter package

Submodules

otter.bootstrap module

Implements a means of using the Bootstrap html and css toolkit to make the report.

class otter.bootstrap.Alert(text='', style='info', hclass='')[source]

Bases: otter.html.HTMLElement

Creates a Bootstrap alert object in the report.

Attributes
childtag
tag
class otter.bootstrap.Column(width=12, size='md', hclass='')[source]

Bases: otter.html.HTMLElement

Attributes
childtag
tag
class otter.bootstrap.Label(text='', style='default')[source]

Bases: otter.html.HTMLElement

Attributes
childtag
tag
class otter.bootstrap.Panel(title='', footer='', style='default', hclass='')[source]

Bases: otter.html.HTMLElement

Creates a Bootstrap panel object in the report.

Attributes
childtag
tag
class otter.bootstrap.Row(cols=1, size='md', hclass='')[source]

Bases: otter.html.HTMLElement

Attributes
childtag
tag

otter.html module

class otter.html.HTMLElement(content=None, **kwargs)[source]

Bases: object

Attributes
childtag
tag
childtag = None
tag = None
class otter.html.OrderedList(content=None, **kwargs)[source]

Bases: otter.html.HTMLElement

childtag = 'li'
tag = 'ol'
class otter.html.Row(content=None, **kwargs)[source]

Bases: otter.html.HTMLElement

childtag = 'td'
tag = 'tr'
class otter.html.Table(content=None, **kwargs)[source]

Bases: otter.html.HTMLElement

Attributes
childtag
tag = 'table'
otter.html.dict_to_table(dictionary)[source]
otter.html.my_html_row_with_attrs(celltag, cell_values, colwidths, colaligns)[source]

otter.otter module

class otter.otter.Otter(filename, config_file=None, **kwargs)[source]

Bases: object

Otter is a pythonic report writing system designed to produce HTML reports for long-running or complex jobs where and iPython notebook would be an impractical way of presenting information.

Methods

add

show

add(self, item)[source]
show(self)[source]

otter.plot module

Implements an interface with the Matplotlib plotting library in order to add plots to a report.

class otter.plot.Figure(figure, filename=None, dpi=300)[source]

Bases: object

Module contents