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.
Free software: ISC license
Documentation: https://code.daniel-williams.co.uk/otter/
Quick Example
Otter can be used to produce reports containing a mixture of prose, data, and figures with minimal code.
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:
Metadata
Release files for otter-report 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| otter_report-0.4.0.tar.gz | 193.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| otter_report-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 206.0 kB
Release files / otter_report-0.4.0.tar.gz
| Download URL | otter_report-0.4.0.tar.gz |
|---|---|
| Size | 193.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4c07fc42078c2568ff8c6146603560f8e281a4245a85b86a55eb7fd436bf261
|
|
BLAKE2b-256 checksum How to use checksums |
80ed97dbaa447d844cdd57054ad6e87641aa94ee86463ce7f260b5019b62ff97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / otter_report-0.4.0-py2.py3-none-any.whl
| Download URL | otter_report-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8728862532c3cc5a385bf72200922e78d17dc58bcaf5777858311523ac3153c2
|
|
BLAKE2b-256 checksum How to use checksums |
42c2b602d2a5bbaaf9db1cff035ee6ddea76938c0b25ac1e6ac8ca288a073b47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|