Skip to main content

A report generation package for results of Monaco 2018 Racing

Project description

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:

Record.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:

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:

good_records_asc, bad_records = Record.build_report(path=folder_path, order="asc") """

print_report

Formats and prints a report based on ordered lists of valid and invalid records. """ Example:

print_report(expected_good_records_asc, expected_bad_records, border_line=2) """

cli

Parses command-line arguments using argparse and returns a namespace. """ Example:

cli("--files", "path/to/folder", "--asc") """

record_report

Orchestrates the report generation process, parsing command-line arguments, generating reports, and printing them. """ Example:

record_report("--files", "path/to/folder", "--asc") """

License

This package is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

report_volo-0.1.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

report_volo-0.1.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file report_volo-0.1.3.tar.gz.

File metadata

  • Download URL: report_volo-0.1.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for report_volo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 73d3be9b36c8d22fbb84ca53e24fdcdd67d0ab18a710a0d8705a3adddd2f3b1a
MD5 8ac61893984c6a0fdb12733b2fcad451
BLAKE2b-256 e522aef2a7f5bc2e98addfdb5ef33d8eb8abf40c605ead80be1e06db04d37215

See more details on using hashes here.

File details

Details for the file report_volo-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: report_volo-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for report_volo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bfcec3cdaf3314dd859ff825a331ea0d7bc90e3269b5e261c19ad5d714826dd0
MD5 96f41a7bddafaa74ab343e006a5ffc12
BLAKE2b-256 0ac0e8c40afea5f82566a0dfe5d240cc0b754102fea33e8b5f153fa221e333df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page