Skip to main content

qa4sm-autoreports

CI PyPI Coverage Status Documentation

QA4SM Logo

This packages contains the python code to programmatically create validation reports using QA4SM (automated validation reports).

This is a client application written in python that uses the QA4SM public API (access via the python API wrapper package)

Installation

In order to compile latex to pdf reports, you need to install texlive from https://tug.org/texlive/. This should enable the command line program pdflatex which is called from some python functions in this package.

sudo apt install texlive-full

Afterwards, you can install the package. This will also install the qa4sm-api package (which is the most important dependency.)

pip install qa4sm-autoreports

Then, you ideally set up the .qa4smapirc file as described here to enable access to different QA4SM instances via the API.

Alternatively, you can also set the QA4SM_INSTANCE and QA4SM_TOKEN environment variables, or pass the token and instance in your application code.

Development and testing

To install the package from source, with optional dependencies for testing (as required for developing the code), run

pip install -e .[testing]

Afterwards you can run pytest (integration tests are excluded)

pytest

To run the integration tests, which sets up a new validation report series and actually trigger validation runs on the test instance (which will take a few minutes), run

pytest -m "integration"

Main components

qa4sm_autoreports.run.ValidationRun

A class that sets up a local validation run directory, with a predefined validation configuration or an existing online validation run. Afterwards, it can be used to trigger a validation run online, check the run status of the run, or synchronize the validation results to the local folder.

qa4sm_autoreports.report.AutoReportCreator

A validation report combines multiple validation runs. It is a setup of multiple validation configurations (i.e., multiple runs required for a report to trigger online), download all results and collect various variables from different sources (processing date, status, errors, stats, etc.).

This also contains a method to compile a PDF using the downloaded and collected results for this report and a set up predefined latex templates. The latex template is filled with the data from the report, and the pdf is exported.

qa4sm_autoreports.series.AutoReportSeries

A validation report series combines multiple validation reports. It contains methods to track metrics across the report series and add/delete reports to/from the series.

Metadata

Release files for qa4sm-autoreports 0.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 qa4sm-autoreports 0.2
File Size Uploaded
qa4sm_autoreports-0.2.tar.gz 8.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for qa4sm-autoreports 0.2
File Interpreter ABI Platform
qa4sm_autoreports-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 MB

Release files / qa4sm_autoreports-0.2.tar.gz

Download URL qa4sm_autoreports-0.2.tar.gz
Size 8.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b12e1a64ebe9cdb036a4654cce3b6fd6afb63ecfd4ad00b44ba2fc2fbd82a718
BLAKE2b-256 checksum
How to use checksums
f2f4bb4d5d0e40ce1652e8b0ee221f1f08e6d4f045e4caa93f5357aedb7862e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / qa4sm_autoreports-0.2-py3-none-any.whl

Download URL qa4sm_autoreports-0.2-py3-none-any.whl
Size 28.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf5c5a07944f6496f30c3ab2bf8df71928338c5a88302a6ecdba09dfb9ddc783
BLAKE2b-256 checksum
How to use checksums
cec34c0e3e50c4117eca3b47535c0247b0f8f03e1b4bf38be89118bd1081c5c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

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