Applications built on the QA4SM service API
Project description
qa4sm-autoreports
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qa4sm_autoreports-0.1.tar.gz.
File metadata
- Download URL: qa4sm_autoreports-0.1.tar.gz
- Upload date:
- Size: 9.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
609fa3c074b40139308ccab4e269505b824fd3889790fb41c30ebde249c12a8b
|
|
| MD5 |
54f0ee9ab19721434148950c4a54d681
|
|
| BLAKE2b-256 |
0109b31084809a93c16d8ec1405af809a71f86d404778af00505b6ac324fa484
|
File details
Details for the file qa4sm_autoreports-0.1-py3-none-any.whl.
File metadata
- Download URL: qa4sm_autoreports-0.1-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75f078416988368f977317819a8f65849edb612d90dc120ac88be7a10adc9570
|
|
| MD5 |
2109eee5248fa8867a0c69f72fc09ef1
|
|
| BLAKE2b-256 |
8d79f8fba331ad9a91f75782497810f60c96f4ba310711c5461a968791992cc8
|