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.
Generate a report beginning at the first date of the current month until current day.
python3 reporter.pyGenerate a report over all available log files.
python3 reporter.py --fullGenerate a report beginning at the first date of the current month until a specified day.
python3 reporter.py --end 20XX-XX-XXGenerate a report beginning at a specified date until the current day.
python3 reporter.py --start 20XX-XX-XXGenerate a report for a whole month (1-12)
python3 reporter.py --month 3Reporter 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.
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.
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.
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.