Project description
Module for report generation. Takes logs of start and end time, assing values by key to data from abbrevations.txt and provide records recults.
Installation
To use the package, you need to install it first. You can do this using pip:
pip install report_volo
A Simple Example
from report_volo import record_report
args = ["--files", "path/to/data_folder", "--asc"]
record_report(args)
Methods:
read_abbr
Reads abbreviations from the specified file, validates the format, and returns a dictionary of Record objects.
Example:
from report_volo import read_abbr
read_abbr("path/to/folder, records_dict, abbr_file="abbreviations.txt")
read_logs
Reads log files, extracts start and end data, and updates the Record objects accordingly.
Example:
from report_volo import read_logs
read_logs("path/to/folder", records_dict, start_file="start.log", end_file="end.log")
build_report
Compiles and returns two lists of Record objects representing valid and invalid records based on logs and abbreviations.
Example:
from report_volo import build_report
good_records_asc, bad_records = build_report(path=folder_path, order="asc")
print_report
Formats and prints a report based on ordered lists of valid and invalid records.
Example:
from report_volo import print_report
print_report(expected_good_records_asc, expected_bad_records, border_line=15)
cli
Parses command-line arguments using argparse and returns a namespace.
Example:
from report_volo import cli
cli("--files", "path/to/folder", "--asc")
record_report
Orchestrates the report generation process, parsing command-line arguments, generating reports, and printing them.
Example:
from report_volo import record_report
record_report("--files", "path/to/folder", "--asc")
License
This package is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for report-volo 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| report_volo-0.2.0.tar.gz | 10.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| report_volo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / report_volo-0.2.0.tar.gz
| Download URL | report_volo-0.2.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ada959c94a0ea194aa4af6bbd8778ccc8bd8d37c8d9d5f445eeb94fed0e05c5
|
|
BLAKE2b-256 checksum How to use checksums |
035749006f098965f13919c305120d431b302d9dd3fe58c1ed524f11361ab009
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / report_volo-0.2.0-py3-none-any.whl
| Download URL | report_volo-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67576d9e11c6e5cd2d36da3901087e2639a283bcfc91d5d08eac16ed99846b19
|
|
BLAKE2b-256 checksum How to use checksums |
79689eddfefbc06242628368bf8b8d7a67e9bccd06b10650268890cd83229f25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for report-volo 0.2.0
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.