Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporter

Reporter is a CLI-tool that allows the user to generate Latex tabulars from several .csv log files which reflect access statistics of different countries on a server.

Usage

Generate a report beginning at the first date of the current month until current day.

python3 reporter.py

Generate a report over all available log files.

python3 reporter.py --full

Generate a report beginning at the first date of the current month until a specified day.

python3 reporter.py --end 20XX-XX-XX

Generate a report beginning at a specified date until the current day.

python3 reporter.py --start 20XX-XX-XX

Generate a report for a whole month (1-12)

python3 reporter.py --month 3

Functionality

Reporter is a tool specifically implmented to generate reports in the form of Latex tables. It is specifically implmented to handle location-playtime data produced by the Logger utility. Reporter consists of the following constituents: aggregator, formatter and log_crawler. All these components are orchestrated in the reporter which starts Reporter as a typer CLI application.

Log Crawler

The Log crawler iterates over tranlstation log files as described in the Logger repository and generates from them a list of dataframes corresponding on the chosen time interval. The location of the crawled directory is specified by an environmental variable.

Aggregator

The aggregator receives the log crawler's list of log dataframes and merges them into a single dataframe in which corresponding playtime values are added up for each game-country combination.

Formatter

The formatter takes the aggregators output dataframe and converts it into a Latex crosstable with countries representing rows and top columns representing game creators and sub-columns the corresponding games. Each cell indicates the accumulated number of measurements performed by the logger utlity over each combination.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages