Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 690 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 690 Bytes

dullard

This gem is no longer maintained

Use roo or creek for streaming xlsx parsing.

Super simple, super fast stream-based XLSX parsing. Suitable for very large files.

Requires Ruby 2.0 or later.

require 'dullard' 

workbook = Dullard::Workbook.new "file.xlsx"
workbook.sheets[0].rows.each do |row|
  p row # => ["a","b","c", 0.3, #<DateTime: -4712-01-01....>, ...]
end

Current limitations

  • Limited validation and error handling.
  • Formatted cells are read minus formatting.
  • Rows that end with empty cells may be truncated.
  • Less common XLSX features (i.e., inline strings, 1904 date mode) may not work.
  • May be buggy. Pull requests welcome!