Skip to main content

The simple HTML report generator for Python jobs.

Project description

Otter is a simple HTML report generator for Python jobs. Otter was designed to produce reports on long-running jobs on remote machines, and send them to a web server, but it’s able to process many different outputs from Python scripts, and convert them into neat and readible HTML pages.

Otter makes use of Twitter Bootstrap to make an easily themed layout for its output.

Quick Example

Otter can be used to produce reports containing a mixture of prose, data, and figures with minimal code.

images/screenshot.jpg

This report was generated with just a small number of lines of Python:

import otter
import otter.bootstrap as bt

report = otter.Otter("index.html", author="Daniel Williams", title="Test Page", author_email= "daniel.williams@ligo.org")


with report:
    report + "#Section Title"

    report + "Lorem ipsum dolor sit amet..."


with report:

    row = bt.Row(3)

    import numpy as np
    import matplotlib.pyplot as plt

with report:
    f, ax = plt.subplots(1,1)
    x = np.linspace(0,10, 100)
    ax.plot(x, np.sin(x))

    row[1] + f

    row[0] + {"mass": "1kg", "price": "$1000", "area": 400}

    report + row

with report:
    report + "##Subsection Header"
    report + "Fusce vel lectus ultricies,... "

Features

  • TODO Add support for pandas data tables

  • TODO Add support for custom headers and footers

Credits

Tools used in rendering this package:

Project details


Download files

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

Source Distribution

otter_report-0.4.0.tar.gz (193.7 kB view details)

Uploaded Source

Built Distribution

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

otter_report-0.4.0-py2.py3-none-any.whl (12.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file otter_report-0.4.0.tar.gz.

File metadata

  • Download URL: otter_report-0.4.0.tar.gz
  • Upload date:
  • Size: 193.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for otter_report-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d4c07fc42078c2568ff8c6146603560f8e281a4245a85b86a55eb7fd436bf261
MD5 1e3a530d6e0926e83d6b8c3248ebd671
BLAKE2b-256 80ed97dbaa447d844cdd57054ad6e87641aa94ee86463ce7f260b5019b62ff97

See more details on using hashes here.

File details

Details for the file otter_report-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: otter_report-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for otter_report-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8728862532c3cc5a385bf72200922e78d17dc58bcaf5777858311523ac3153c2
MD5 7fbf3a3312e274799222e77d95c1437c
BLAKE2b-256 42c2b602d2a5bbaaf9db1cff035ee6ddea76938c0b25ac1e6ac8ca288a073b47

See more details on using hashes here.

Supported by

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