0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Memory efficient CSV
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0
 Project Readme

CompactCSV

Build Status Coverage Status Dependency Status Gem Version

CompactCSV is memory efficient csv module for ruby. Reading operations are compatible with default CSV module.

However, operations which change fields/values structure of row are not available in CompactCSV. If you want to do this, please use default CSV module.

Installation

Add this line to your application's Gemfile:

gem 'compact_csv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install compact_csv

Usage

csv = CompactCSV.read('sample.csv', headers: true)
csv.each do |row|
  p row # => #<CompactCSV::Row "ID":"1" "VALUE":"A">
  row['VALUE'] = 'AAA'
  p row # => #<CompactCSV::Row "ID":"1" "VALUE":"AAA">
end

Links

Contributing

  1. Fork it ( http://github.com/rnakano/compact_csv/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request