Page MenuHomeDevCentral

report.py
No OneTemporary

report.py

# -------------------------------------------------------------
# Nasqueron Reports :: Reports
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Underlying types to represent a report
# License: BSD-2-Clause
# -------------------------------------------------------------
from typing import List, Any
class RawReport:
"""The report fetched from the datasource"""
def __init__(self, headers: Any = None, rows: List[Any] = None):
self.headers = headers
self.rows = rows
class Report:
"""The report with access to raw report and formatted version"""
def __init__(self, raw: RawReport | None = None, formatted: str = None):
if raw is None:
self.raw = RawReport()
else:
self.raw = raw
self.formatted = formatted

File Metadata

Mime Type
text/x-script.python
Expires
Sat, Nov 7, 08:16 (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4244086
Default Alt Text
report.py (877 B)

Event Timeline