No project description provided
Project description
Log_report
Installation
To use in your project just use your dependency manager to install it, with pip is like this:
pip install log_report
Usage
Program takes path to directory with logs and return statistic about them place|name|car|time
arguments
- path first positional arg
- --driver optional takes name of driver statistic only about him
- --desc or --asc sort by, asc is default
python -m log_report <path to dir with logs> --desc
python -m log_report <path to dir with logs> --driver <name driver in "">
Documentation function and classes
the package has 2 classes and 2 function
- args_parser()
add arguments and parse, return namespace with them
- parse_call(args_cm=<namespace_args>)
takes namespace of args from previous func and call something it depends what args were parsed
-
class Log
-
obj Log parameters path
-
Log.read_data
read data from files in path
-
Log.get_logs
validate for usage and return three lists with abbreviations start_time and end_time
-
-
class Report
-
obj Report parameters abbr_list, start_list, end_list
-
Report.get_diff calculate difference
between start and end time
-
Report.concatenate_sort_data
concatenate diff time with abbr and then sort it
-
Report.output
print statistic about all drivers
-
Report.driver
takes name and get statistic about driver
-
Report.solo_output
print statistic about driver work with previous method
-
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
File details
Details for the file log_report-1.1.tar.gz
.
File metadata
- Download URL: log_report-1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af324698b0683d5cc723c259e1b7d2022c8f06ee506b77dae10f3889acaa3d47 |
|
MD5 | 26120cfb828114cf4d3f27771366a39e |
|
BLAKE2b-256 | f04d83422c24bc3c62ccbede852648c80eaebc54487df97075ce49120684d6c2 |
File details
Details for the file log_report-1.1-py3-none-any.whl
.
File metadata
- Download URL: log_report-1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65af9d21a2f919fe12daa4ed0af72b9a7be787081dc8abf5e6e8eb902cf62734 |
|
MD5 | de89218ba8b26faba3991c66c32871a9 |
|
BLAKE2b-256 | 546c1b54ba39e843afd730711cc23e0e65e2f05904cc8b8db63731c0870d946c |