Hakoy

Code Climate

Parse and organize CSV data into timestamp-sliced directories.

Usage

conf = {
  db_dir:        'your file dir to store results',
  output_format: 'csv', # default
  timestamp_key: 'timestamp',
  required_keys: [
    'order_id',
    'customer_id',
    'product_id',
    'price',
    'timestamp'
  ]
}

Hakoy.('data/order.csv', conf)

It creates and organizes directories and files using timestamps. Below is a sample screenshot.

screen shot 2014-06-12 at 12 13 34 pm

TODO

  • Better unique key generation algorithm. It is too primitive now.