csvpack Update - Work with tabular data packages in ruby (download, import into sql, query w/ ActiveRecord and more)


(Gerald Bauer) #1

Hello,

  I've updated the csvpack (*) library / gem [1] that
  let's you work with tabular data packages in ruby.

  Download comma-separated values (CSV) datafiles in text - also known
as tabular datafiles and read into any sql database (e.g. SQLite,
PostgreSQL, ...), query w/ ActiveRecord and more. Example:

     require 'csvpack'

     CsvPack.import(
       's-and-p-500-companies',
       'gdb'
     )

   Cheers. Prost.

PS: You can find 100+ (starter) tabular data packages at the /datasets
github org [2] (thanks to the DataHub.io folks).

(*): formerly known (published) as datapak

[1]: https://github.com/csv11/csvpack
[2]: https://github.com/datasets