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.

Download files

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

Source Distribution

qa4sm_autoreports-0.2.tar.gz (8.5 MB view details)

Uploaded Source

Built Distribution

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

qa4sm_autoreports-0.2-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file qa4sm_autoreports-0.2.tar.gz.

File metadata

  • Download URL: qa4sm_autoreports-0.2.tar.gz
  • Upload date:
  • Size: 8.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qa4sm_autoreports-0.2.tar.gz
Algorithm Hash digest
SHA256 b12e1a64ebe9cdb036a4654cce3b6fd6afb63ecfd4ad00b44ba2fc2fbd82a718
MD5 7b34f46066c33e682e38c8ae0f46a069
BLAKE2b-256 f2f4bb4d5d0e40ce1652e8b0ee221f1f08e6d4f045e4caa93f5357aedb7862e0

See more details on using hashes here.

File details

Details for the file qa4sm_autoreports-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for qa4sm_autoreports-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5c5a07944f6496f30c3ab2bf8df71928338c5a88302a6ecdba09dfb9ddc783
MD5 62804c193d5609a37fc31aa3e57f6f64
BLAKE2b-256 cec34c0e3e50c4117eca3b47535c0247b0f8f03e1b4bf38be89118bd1081c5c4

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 Sentry Error logging StatusPage Status page