Skip to main content

HTML Reports

Module for creating html reports based on jinja2 templates.

Usage

First you should create a report. Then you can add content to it. When you have all the content you can render it in a file with the write_report function.

For example:

from reports import Report

rep = Report()

rep.add_title("title1")
rep.add_title("title1.1", level=2)
rep.add_markdown("Some text")

rep.write_report()

This will create the report.html file using the templates/simple.html template.

Pyplot figures

Create a figure with pyplot and append it to the report with:

import matplotlib.pyplot as plt
plt.plot ([1, 2, 3]) 

rep.add_figure() 

Installation

pip install -r requirements.txt

Authors

License

The content of this repository is licensed under a MIT.

Nomenclature

Branches and commits use some prefixes to keep everything better organized.

Branches

  • f/: features
  • r/: releases
  • h/: hotfixs

Commits

  • [NEW] new features
  • [FIX] fixes
  • [REF] refactors
  • [PYL] pylint improvements
  • [TST] tests

Download files

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

Source Distribution

html-reports-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

html_reports-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file html-reports-0.2.0.tar.gz.

File metadata

  • Download URL: html-reports-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for html-reports-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c99c00428eae8386946abb095d87b9038c4f850adb061dd59d1acaf1bf12261c
MD5 ca2df07d265dc0a4707709e11b922431
BLAKE2b-256 7de8d7cab842e88be69e8bae8a0083ada8ee35c2a0c133ccc388b66045ca875e

See more details on using hashes here.

File details

Details for the file html_reports-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: html_reports-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for html_reports-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf8cae221494f17724ba86297bec4b4e593ade910f3e6c130e02d9a04e15350
MD5 dd272009df0580c9a9142505e5afc2a7
BLAKE2b-256 aaf1fd69d1f80bc13e5ea364beacd6da217be4d5597ab17740addbae566249be

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page