Skip to content

Releases: caltechlibrary/datatools

jsonrange refinement

01 Mar 22:22
Compare
Choose a tag to compare

In this release updates were focused on jsonrange. It now returns keys by default, handles input/output like jsoncols and can returns lengths or last key index, and values depending on how you set options.

dotpath replacing jid

28 Feb 23:56
Compare
Choose a tag to compare

The primary purpose of the release is the swapping out of jid for a local submodule named dotpath.
This removes a dependency for an external package and keeps the code minimal (dot path in only about 150 lines). It does mean that interactive mode of jsoncols has been removed. If you need this then use jid which is nice for this type of exploration. There are sure to be bugs introduced by this switch... YMMV

Proof of concept data tools for CSV, JSON and XLSX files

06 Feb 20:48
Compare
Choose a tag to compare

This is a set of tools for working with JSON, CSV and Excel Workbook content. It includes the following
tools

  • csvcols - filters or display CSV row outpout
  • csvjoin - joins two CSV files by match designated column values in each file
  • jsoncols - filters JSON dot paths into columns in CSV format (by default)
  • jsonrange - iterates over JSON object (e.g. an array identified by a dot path) rendering one element per line
  • xlsx2json - converts an Excel Workbook sheet into a JSON 2d array
  • xlsx2csv - converts an Excel Workbook sheet into CSV
  • csv2mdtable - converts CSV into a Github Flavored Markdown table
  • csv2xlsx - convert CSV into a designated Excel Workbook sheet