Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12630
| Path | csiph.com!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Kelly Brazil <kellyjonbrazil@gmail.com> |
| Newsgroups | linux.debian.maint.python |
| Subject | Bug#962239: RFP: jc -- converts command output to JSON |
| Date | Fri, 05 Jun 2020 23:40:02 +0200 |
| Message-ID | <Aesee-1Qw-3@gated-at.bofh.it> (permalink) |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Jun 5 21:36:08 2020 |
| Old-Return-Path | <kellyjonbrazil@gmail.com> |
| X-Amavis-Spam-Status | No, score=-2.079 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, FVGT_m_MULTI_ODD=0.02, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=t/wcf7LutCT1nCsh9pVBDdqxheKD7nr93WTmpPApy4A=; b=H5tkALhXeCZOElpnPzR71X2awHGiCl1ZpjxovaGR64KtVF92k5BEz4md+fMg31MffM egt7tp113EGdRzBVnT+8T30YLtTcR2B826EbmfV13PpEe0QSSzDpSmgClIH/IPUrt0J/ 5ux09hsPALIVcqRdiLPzRe2iHzP347TQ7RHtENaV9AhnZKBNfW61ptCd2Yr4oPaFMQ1+ 5RNmU+WVhFAk7r68Jxbt+EiN+YX+9OlWw1SoByeSwhmY25n0VcmBcX5a3nIYdBZzpMhg +890HuENsPNlHrZNi2iRoIT86L9enqNVgW2ehkuTYVbqluEG0xZstIKNx208lldRbe5f 1BcA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=t/wcf7LutCT1nCsh9pVBDdqxheKD7nr93WTmpPApy4A=; b=AFRRCRCL1U8SHJhoUJSM9Bq6OisROfPxMB7Yuxm18Ym8dvBOvlQijsK+tpIi6XkaT8 zgx+LztacLEYNA8XdHWFVS9lxApZVRggKYBUeXFO9BJptgZRpuFNBEUa2m2ZKZMI6W30 RGaS45kQohcPiWWUReyaBzi4ZNA5jp1l7ra1m2QOhgQWcND3ZF4kDdccj1+kxA7uzecF KJnORfde/CDX2EEMLM2wKoUY5zJ2G2uxSglyl53Qh6slAB6ezqPAwDbOqWOF81Cko1gd lq/fJEMrZrTr9rzVA/h7kcX/hPFrqjoUEorhml0DG8AUTN5z79jbImeBuby+K3q/DKg7 yIUA== |
| X-Gm-Message-State | AOAM532XMFBhTznqL31w+xl17wkQlsD28hI5ca0jRbLOpnYP6xkdSePk 8SDJs/KQS8pEap96rIMCkwDE0QNo |
| X-Google-SMTP-Source | ABdhPJwpx7nQK3X+2Utpr/RIOfoauLNeBZHI+gREx+2nDtmoYofLTSuAUZAb204h5f9RueyEBWxhRg== |
| X-Received | by 2002:a05:620a:11b2:: with SMTP id c18mr11586563qkk.480.1591391988078; Fri, 05 Jun 2020 14:19:48 -0700 (PDT) |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| MIME-Version | 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) |
| X-Mailer | Apple Mail (2.3445.104.14) |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/18336 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/E44F56D3-6734-4804-B38B-BBE847741000@gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 41 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 5 Jun 2020 14:19:44 -0700 |
| X-Original-Message-ID | <E44F56D3-6734-4804-B38B-BBE847741000@gmail.com> |
| Xref | csiph.com linux.debian.maint.python:12630 |
Show key headers only | View raw
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 > 50000000)'
{
"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 > 50000000)'
{
"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
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Bug#962239: RFP: jc -- converts command output to JSON Kelly Brazil <kellyjonbrazil@gmail.com> - 2020-06-05 23:40 +0200
csiph-web