jtbl
libxo
Our great sponsors
jtbl | libxo | |
---|---|---|
10 | 17 | |
234 | 296 | |
- | 0.7% | |
7.2 | 0.0 | |
4 months ago | about 15 hours ago | |
Python | C | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jtbl
- how to respect empty values in columns?
-
After 25 years, I still write Perl nearly every day, no matter what else I'm doing.
jc, jq and jtbl make a really potent combination for working with json.
-
Jello v1.3 now supports dot notation (Command-line JSON filter using python syntax)
jtbl converts JSON into tables for printing at the terminal: https://github.com/kellyjonbrazil/jtbl
-
Looking for a way to make tables in cli form
Take a look at https://github.com/kellyjonbrazil/jtbl or https://github.com/nushell/nushell
- Practical use of JSON in Bash
-
Linux and Powershell
Shameless plug - I created a cli tool called jtbl[0] that converts json output to tables in the terminal.
libxo
-
jc: Converts the output of popular command-line tools to JSON
> In FreeBSD, this problem was solved with libxo[0]:
Libxo happens to be in the base system, but it is generally available:
- Libxo: The Easy Way to Generate Text, XML, JSON, and HTML Output
-
Getting work done with PowerShell on Linux
Or make it flexible:
> libxo - A Library for Generating Text, XML, JSON, and HTML Output
* https://github.com/Juniper/libxo/
* https://wiki.freebsd.org/LibXo
Want structure? Ask for JSON or XML and parse. Otherwise it's the regular text output.
-
Jc – JSONifies the output of many CLI tools
Can you trust it? Cli tool output is not exactly stable. I thought that's why libxo exists?
-
Curl gets a --json flag
Please consider https://github.com/Juniper/libxo or something even better than that.
-
You shouldn't parse the output of ls(1)
That would look a lot like FreeBSD. Many of the FreeBSD userland tools are set up to use the excellent libxo (https://github.com/Juniper/libxo) to allow the user's choice of how things are output.
- The growth of command line options, 1979-Present
-
Tips on Adding JSON Output to Your CLI App
libxo:
> The libxo library allows an application to generate text, XML, JSON, and HTML output using a common set of function calls. The application decides at run time which output style should be produced. The application calls a function "xo_emit" to product output that is described in a format string. A "field descriptor" tells libxo what the field is and what it means.
* https://github.com/Juniper/libxo
Then add an "--output-format" option.
-
Bringing the Unix Philosophy to the 21st Century: Make JSON a default output option.
libxo allows switching the output format (plaintext, JSON, XML, HTML)
What are some alternatives?
pdfalto - PDF to XML ALTO file converter
sc-im - sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
elvish - Powerful scripting language & Versatile interactive shell
PSReadLine - A bash inspired readline implementation for PowerShell
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
jc - 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.
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.
PSScriptAnalyzer - Download ScriptAnalyzer from PowerShellGallery
jello - CLI tool to filter JSON and JSON Lines data with Python syntax. (Similar to jq)