CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
MIT License
Bot releases are hidden (Show)
Published by kellyjonbrazil about 2 years ago
--meta-out
or -M
option to add metadata to the JSON output, including a UTC timestamp, parser name, magic command, and magic command exit codemdadm
command parser tested on linux-n
support to the traceroute
parserlsusb
command parser for output containing a Device Qualifier
andBinary Object Store Descriptor
sectionsLANG=C
to LC_ALL=C
in locale instructions__main__.py
to package allowing python -m jc
usageRelease notes: https://blog.kellybrazil.com/2022/08/21/jc-version-1-21-0-released/
Published by kellyjonbrazil about 2 years ago
20220723 v1.20.4
20220723 v1.20.3
Release Notes: https://blog.kellybrazil.com/2022/05/31/jc-version-1-20-0-released/
Published by kellyjonbrazil over 2 years ago
gpg --with-colons
parser tested on linuxRelease notes: https://blog.kellybrazil.com/2022/05/31/jc-version-1-20-0-released/
Published by kellyjonbrazil over 2 years ago
postconf -M
parser tested on linuxasciitable
and asciitable-m
parsers to preserve case in key names when using the -r
or raw=True
options.--help
, --about
, --pretty
, etc.)id
parser for cases where the user or group name is not presentRelease Notes: https://blog.kellybrazil.com/2022/05/31/jc-version-1-20-0-released/
Published by kellyjonbrazil over 2 years ago
-y
top -b
standard and streaming parsers tested on linuxplugin_parser_count
, standard_parser_count
, and streaming_parser_count
jc -a
outputis_compatible
function to the utils
modulepip-show
parser for packages with a multi-line license fieldRelease Notes: https://blog.kellybrazil.com/2022/05/31/jc-version-1-20-0-released/
Published by kellyjonbrazil over 2 years ago
jc
now comes bundled with 100 parsers!
chage --list
command parser tested on linuxgit log
command streaming parsergit log
standard parser for corner-cases where hash values are in messagesdf
command parser for rare instances when a newline is found at the endjc
to pip install on unsupported python version 3.6asciitable-m
parser to skip some rows that contain column separator-q
or quiet=True
is used.Release Notes: https://blog.kellybrazil.com/2022/05/17/jc-version-1-19-0-released/
Published by kellyjonbrazil over 2 years ago
update-alternatives --query
parser for cases where slaves
are not presentUnicodeEncodeError
on some systems where LANG=C
is set and unicode characters are in the outputhistory
parser: do not drop non-ASCII characters if the system is configured for UTF-8 encodingUpdates from v1.18.7
git log
command parserupdate-alternatives --query
parserupdate-alternatives --get-selections
parserxrandr
parser: add a rotation
field-v
and -a
outputPublished by kellyjonbrazil over 2 years ago
pidstat
command parser tested on linuxpidstat
command streaming parser tested on linuxmpstat
command parser tested on linuxmpstat
command streaming parser tested on linuxparser_info()
and all_parser_info()
Release notes: https://blog.kellybrazil.com/2022/01/27/jc-version-1-18-1-released/
Published by kellyjonbrazil over 2 years ago
date
parser to ensure AM/PM period string is always uppercase. This fixes tests that would fail on some locales.Release notes: https://blog.kellybrazil.com/2022/01/27/jc-version-1-18-1-released/
Published by kellyjonbrazil over 2 years ago
nmcli
command parser tested on linuxRelease notes: https://blog.kellybrazil.com/2022/01/27/jc-version-1-18-1-released/
Published by kellyjonbrazil over 2 years ago
rsync
command and log file parser tested on linux and macOSrsync
command and log file streaming parser tested on linux and macOSxrandr
command parser tested on linuxRelease notes: https://blog.kellybrazil.com/2022/01/27/jc-version-1-18-1-released/
Published by kellyjonbrazil over 2 years ago
Release notes: https://blog.kellybrazil.com/2022/01/27/jc-version-1-18-1-released/
Published by kellyjonbrazil over 2 years ago
Release Notes: https://blog.kellybrazil.com/2022/01/27/jc-version-1-18-1-released/
Published by kellyjonbrazil almost 3 years ago
Release Notes: https://blog.kellybrazil.com/2021/09/26/jc-version-1-17-0-released/
Published by kellyjonbrazil almost 3 years ago
zipinfo
parser tested on linux and macOSRelease notes: https://blog.kellybrazil.com/2021/09/26/jc-version-1-17-0-released/
Published by kellyjonbrazil almost 3 years ago
Release notes: https://blog.kellybrazil.com/2021/09/26/jc-version-1-17-0-released/
Published by kellyjonbrazil almost 3 years ago
iostat
parser tested on linuxiostat
streaming parser tested on linuxRelease Notes: https://blog.kellybrazil.com/2021/09/26/jc-version-1-17-0-released/
Published by kellyjonbrazil almost 3 years ago
Published by kellyjonbrazil about 3 years ago
vmstat
parser tested on linuxls -l
command streaming parser tested on linux, macOS, and freeBSDping
and ping6
command streaming parser tested on linux, macOS, and freeBSDvmstat
command streaming parser tested on linux-u
option to allow unbuffered outputPublished by kellyjonbrazil about 3 years ago
stat
parser to properly handle filenames with spaces on macOS/BSD