Bug#962239: RFP: jc -- converts command output to JSON

2020-06-05 Thread Kelly Brazil
Hi Python Team!

I’m the developer of jc - a tool that converts the output of dozens of command 
and file-types to JSON so you can use tools like jq to parse the output.

For example:

$ ls -l /usr/bin | jc --ls | jq '.[] | select(.size > 5000)'
{
  "filename": "docker",
  "flags": "-rwxr-xr-x",
  "links": 1,
  "owner": "root",
  "group": "root",
  "size": 68677120,
  "date": "Aug 14 19:41"
}

or using the alternative "magic" syntax:

$ jc ls -l /usr/bin | jq '.[] | select(.size > 5000)'
{
  "filename": "docker",
  "flags": "-rwxr-xr-x",
  "links": 1,
  "owner": "root",
  "group": "root",
  "size": 68677120,
  "date": "Aug 14 19:41"
}

I have a Request For Package open at 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962239.

Please consider packaging jc. It is currently packaged for OpenSUSE, NixOS, 
macOS (Homebrew), and FreeBSD (ports). jc is currently in process for packaging 
on Fedora.

Thank you,
Kelly Brazil


Bug#962505: Update Pygments package

2020-06-28 Thread Kelly Brazil
Any chance we can get the Pygments package updated? 
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962505 
)

There are some new API values my app, jc, is using 
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962239 
) so packaging for jc 
is blocked by this.

Thanks,
Kelly





Re: Bug#962239: RFP: jc -- converts command output to JSON

2020-07-11 Thread Kelly Brazil
Hi team,

We have updated jc to version 1.12.1 which now works with the version of the 
pygments library that ships with Debian. This should be quite trivial to patch 
now. Could someone take this package on?

Thanks,
Kelly


RFP: Jello - Filter JSON and JSON Lines data with Python syntax

2021-06-22 Thread Kelly Brazil
Hi Python Team!

I’m the developer of Jello (and JC). Jello is similar to JQ in that it filters 
JSON and JSON lines, except Jello uses pure python syntax.

https://github.com/kellyjonbrazil/jello 
<https://github.com/kellyjonbrazil/jello>

For example:
$ jc -a | jello -rl '[entry.name for entry in _.parsers if "darwin" in 
entry.compatible]'

airport
airport_s
arp
crontab
crontab_u
...
Please consider packaging Jello. It is currently available on AUR and Homebrew 
and is currently in process for packaging on Fedora. It should be very similar 
to the JC spec, but with fewer dependencies. (only Pygments>=2.4.2)

Thank you,
Kelly Brazil



Re: RFP: Jello - Filter JSON and JSON Lines data with Python syntax

2021-06-23 Thread Kelly Brazil
Hi team,

I have also opened a package request here: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990234 
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990234>

Thanks,
Kelly Brazil