TeamspeakStats/tsstats
Thor77 08b4e06f10 Refactor and simplify log-parsing
* _parse_line parses one line at a time for simplified testing
and return a list of event.Event's instead of applying changes directly
to a Clients-obj
* parse_log just bundles the logs (using _bundle_logs), opens them,
parses them (using _parse_line) and applies returned events to a
Clients-obj in the correct order

With these changes some sort of caching is possible because events are
not bound to a specific client-object and are easily sortable due to
their attached timestamp.
2017-09-08 15:39:39 +02:00
..
templates Optionally Pendulum.diff_for_humans instead of frmttime 2017-07-07 14:23:10 +02:00
tests Don't raise InvalidLog 2017-09-08 14:12:48 +02:00
__init__.py Move logger-setup to tsstats.logger 2017-02-27 13:37:00 +01:00
__main__.py Optionally Pendulum.diff_for_humans instead of frmttime 2017-07-07 14:23:10 +02:00
client.py Add string-representation for Clients 2017-09-08 15:39:39 +02:00
config.py Optionally Pendulum.diff_for_humans instead of frmttime 2017-07-07 14:23:10 +02:00
exceptions.py Don't raise InvalidLog 2017-09-08 14:12:48 +02:00
log.py Refactor and simplify log-parsing 2017-09-08 15:39:39 +02:00
logger.py Move logger-setup to tsstats.logger 2017-02-27 13:37:00 +01:00
template.py Optionally Pendulum.diff_for_humans instead of frmttime 2017-07-07 14:23:10 +02:00
utils.py Use pendulum instead of plain datetime 2017-07-07 14:22:24 +02:00