semvec/pypi-packages huggingface dataset:
nginxparser 1.0.1
Nginx log parser and analyzer
License: MIT

nginxparser
===========

NGINX log parser and analyzer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Installation:

::

    pip install nginxparser

Using log format:

::

    log_format myformat '$remote_addr - [$time_local] "$host" "$request" '
                        '$status ($bytes_sent) "$http_referer" '
                        '"$uri $args" [$request_time] [$upstream_response_time]';

usage:

::

    nginxparser [-h] [--uri] [--time] [--clients] [--grep GREP] [--dump DUMP]
                [--no_report] [--debug]
                log_file

optional arguments:

::

      -h, --help            show this help message and exit
      --uri, -u             Get uri-based report
      --time, -t            Get time-based report
      --clients, -c         Get client-based report
      --grep GREP, -g GREP  Grep lines, where 'upstream_time' more than the
                            specified
      --dump DUMP, -d DUMP  Export parsed data to the json.file
      --no_report, -N       Don't print the report
      --debug, -D           Print not parsed lines

examples:

::

    nginxparser --uri /path/to/access_nginx.log
    nginxparser --time /path/to/access_nginx.log
    nginxparser --clients /path/to/access_nginx.log
    nginxparser --grep 10 /path/to/access_nginx.log
    nginxparser -utcN -d out.json /path/to/access_nginx.log
ruamel.showoutput 0.1.7
like subprocess.check_output(), but showing progress
License: MIT

show_ouput works like check_output, but showing progress 

There is a plethora of ways of calling an external
program in Python. For longer running commands you want
to be able to see what is happening, so ``subprocess.check_output()``
is not really usable. Falling back to ``os.system()`` with 
the need to ``' '.join()``  the command is not that useful
as you don't have an exit status


``show_output()`` works like ``check_output()`` (including the
``input=`` keyword parameter), but will display the progress to
``stdout``.  The total output is returned to the caller, or passed
back in the Exceptions ``output`` attribute, raised if the return code
from the calling process is non-zero.

If verbose argument is < 0 then no output is shown, but the result 
still returned