cd GunicornLogsParser
python -m guniparse ./logfile.log
or
pip install GunicornLogsParser
guniparse ./logfile.log
Argument | Description |
---|---|
--help | prints help message |
--from FROM | from when should logs be parsed |
--to TO | to when should logs be parsed |
--order ORDER | specify logs order (default=descending) |
guniparse --help
Tests unfortunately are not as neatly written and do not cover as many test cases as I would like, but I just did not really have much free time :/
Anyway...
To run tests write while in project root directory
python setup.py test
or
first install pytest
pip install -U pytest
and then while being in project root directory you can run tests with
pytest