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 visible (Hide)
Published by kellyjonbrazil over 3 years ago
sfdisk
command parser tested on linuxPublished by kellyjonbrazil over 3 years ago
ping
parser to support error responses in OSX and BSDping
parser to be more resilient against parsing errors for unknown error typesdig
parser to support +noall +answer
use casedig
parser compatibility to all platformssysteminfo
outputRelease Notes: https://blog.kellybrazil.com/2021/04/07/jc-version-1-15-0-released/
Published by kellyjonbrazil over 3 years ago
ufw status
command parser tested on linuxufw-appinfo
command parser tested on linuxRelease Notes: https://blog.kellybrazil.com/2021/04/07/jc-version-1-15-0-released/
Published by kellyjonbrazil over 3 years ago
Release Notes: https://blog.kellybrazil.com/2021/04/07/jc-version-1-15-0-released/
Published by kellyjonbrazil over 3 years ago
Release Notes: https://blog.kellybrazil.com/2021/04/07/jc-version-1-15-0-released/
Published by kellyjonbrazil over 3 years ago
acpi
command parser tested on linuxupower
command parser tested on linux/usr/bin/time
command parser tested on linux and macOSdpkg -l
command parser tested on linuxrpm -qi
command parser tested on linuxfinger
command parser tested on linux and macOSdir
command parser tested on Windows 10date
parser: complete rewrite (v2.0) providing many enhancements:
hour_24
, utc_offset
, day_of_year
, week_of_year
, iso
, and timezone_aware
uptime
parser to add uptime_days
, uptime_hours
, uptime_minutes
, uptime_total_seconds
, time_hour
, time_minute
, and time_second
fieldslast
parser to use new timestamp functionstat
parser to add access_time_epoch
, access_time_epoch_utc
, modify_time_epoch
, modify_time_epoch_utc
, change_time_epoch
, change_time_epoch_utc
, birth_time_epoch
, and birth_time_epoch_utc
fieldstimedatectl
parser to add epoch_utc
fieldwho
parser to add epoch
fielddig
parser to add when_epoch
and when_epoch_utc
fieldsls
parser to add epoch
and epoch_utc
fields-h
option to display the help text. Piping errors no longer show the help text.-v
option to display version information.pygments
, ruamel.yaml
, xmltodict
-p
(pretty) option is usedRelease Notes are available at: https://blog.kellybrazil.com/2021/04/07/jc-version-1-15-0-released/
Published by kellyjonbrazil over 3 years ago
Fixes since Release 1.14.1:
1.14.4
1.14.3
1.14.2
Published by kellyjonbrazil almost 4 years ago
iw-scan
parser tested on linux (beta)date
parser for Ubuntu 20.04 supportlast
parser for last -F
supportlast
parser to add convenience fields and augment data for easier parsingRelease notes: https://blog.kellybrazil.com/2021/01/01/jc-version-1-14-0-released/
date
command parserA new period
field has been added to the schema to represent AM
and PM
which may appear depending on locale configuration on the host. If the locale does not print AM
or PM
then the value will be null
.
{
"year": integer,
"month_num": integer,
"day": integer,
"hour": integer,
"minute": integer,
"second": integer,
"period": string,
"month": string,
"weekday": string,
"weekday_num": integer,
"timezone": string
}
last
command parserThe duration
field calculation has changed to be more easily parsed and will display as total HOURS:MINUTES
. Also, a few convenience calculated fields have been added and will display when the last -F
option is used: login_epoch
, logout_epoch
, and duration_seconds
.
[
{
"user": string,
"tty": string,
"hostname": string,
"login": string,
"logout": string,
"duration": string,
"login_epoch": integer, # available with last -F option
"logout_epoch": integer, # available with last -F option
"duration_seconds": integer # available with last -F option
}
]
Published by kellyjonbrazil almost 4 years ago
Release notes: https://blog.kellybrazil.com/2021/01/01/jc-version-1-14-0-released/
Published by kellyjonbrazil about 4 years ago
Release notes: https://blog.kellybrazil.com/2020/07/28/jc-version-1-13-1-released/