CSV

This parser parses csv to and from the Tolq api format.

Installation

Add this line to your application's Gemfile:

gem 'tolq-parsers-csv'

And then execute:

  $ bundle

Or install it yourself as:

  $ gem install tolq-parsers-csv

Usage

To parse to the tolq format:

csv = File.open('mycsv.csv', 'rb', &:read)
parser = Tolq::Parsers::csv::Parser.new(quality: 'standard')
parser.parse(csv)

And to unparse from the tolq format back to csv:

unparser = Tolq::Parsers::CSV::Unparser.new
unparser.unparse(tolq_api_response)

Development

Pointers:

  • Keep in-code documentation up to date, document all public methods, and use YARD
  • Write y'r tests
  • Keep readme up to date
  • Make PRs, not war

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tolq/parsers/csv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.