Skip to main content

Runtime Reporting Utils

Python module for reporting runtime metadata.

Usage

from runtime_reporting_utils import RuntimeReporter

rr = RuntimeReporter()

rr.add_file(file=logfile, name="log file")
rr.add_file(file=config_file, name="configuration file")
rr.add_file(file=outfile, name="main output file")

rr.count(name="gene", desc="Number of genes processed")
rr.count(name="missing-annotation", desc="Number of genes that do not have annotation")

# Set the output directory.
# Default will be /tmp/[USER]/runtime-reporting-utils/[basename of executable]/YYYY-MM-DD-HHMMSS/
rr.outdir(outdir)

rr.generate_report()
# The RuntimeReport will write the runtime report to the output directory.
# The file will be named report.json.

Invocation:

python main.py
Runtime report written to /tmp/sundaram/runtime-reporting-utils/main.py/2025-02-15-084121/report.json
Execution completed: '/tmp/runtime-reporting-utils-test/main.py'

Contents of runtime report file:

{
    "provenance": {
        "executable": "/tmp/runtime-reporting-utils-test/main.py",
        "hostname": "MSI",
        "outdir": "/tmp/sundaram/runtime-reporting-utils/main.py/2025-02-15-084121",
        "username": "sundaram",
        "start_time": "2025-02-15T08:41:21.573171",
        "end_time": "2025-02-15T08:41:21.575894",
        "elapsed_time": "0:00:00.002726"
    },
    "command-line arguments": [],
    "counters": {
        "gene": {
            "count": 3,
            "desc": "Number of genes processed"
        },
        "missing-annotation": {
            "count": 1,
            "desc": "Number of genes that do not have annotation"
        }
    },
    "files": {
        "/tmp/runtime-reporting-utils-test/log.txt": {
            "path": "/tmp/runtime-reporting-utils-test/log.txt",
            "name": "log file",
            "bytesize": 12,
            "is_binary": false,
            "line_count": 1,
            "md5sum": "e59ff97941044f85df5297e1c302d260"
        },
        "/tmp/runtime-reporting-utils-test/conf/config.yaml": {
            "path": "/tmp/runtime-reporting-utils-test/conf/config.yaml",
            "name": "configuration file",
            "bytesize": 64,
            "is_binary": false,
            "line_count": 6,
            "md5sum": "910974117394282bc6997ddfeb2cfa68"
        },
        "/tmp/runtime-reporting-utils-test/output.txt": {
            "path": "/tmp/runtime-reporting-utils-test/output.txt",
            "name": "main output file",
            "bytesize": 37,
            "is_binary": false,
            "line_count": 1,
            "md5sum": "3babe83376c82b909666b064284024d2"
        }
    }
}

History

0.1.0 (2025-02-08)

  • First release on PyPI.

Metadata

Release files for runtime-reporting-utils 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runtime-reporting-utils 0.1.2
File Size Uploaded Provenance Actions
runtime_reporting_utils-0.1.2.tar.gz 14.5 kB Without provenance Details for runtime_reporting_utils-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runtime-reporting-utils 0.1.2
File Interpreter ABI Platform Actions
runtime_reporting_utils-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for runtime_reporting_utils-0.1.2-py2.py3-none-any.whl

Total release size: 23.8 kB

Release files / runtime_reporting_utils-0.1.2.tar.gz

Download URL runtime_reporting_utils-0.1.2.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a21dc802a56f97019fb562b574f3136a55e6c20570e540f2c3cd4b438b19456e
BLAKE2b-256 checksum
How to use checksums
53c5702da1829621b950b468ef66cde57e520a9516556213c5a82dfbbf6cfbfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / runtime_reporting_utils-0.1.2-py2.py3-none-any.whl

Download URL runtime_reporting_utils-0.1.2-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fe3962ad856d4d76035a16b4c0ab9054bb6dcee51c780cda9d18381df2784179
BLAKE2b-256 checksum
How to use checksums
43b3452cf3279ad0c733b07e55b969c61385b52de8c31009c9f5a24c55d19b34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for runtime-reporting-utils 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page