https://github.com/dmk/fastsheet
FastSheet is the fastest XLSX file parser for Ruby (at the time of release). It leverages a Rust library for high-performance parsing, making it significantly faster than other available solutions.
https://github.com/dmk/fastsheet
excel gem ruby rust spreadsheets xlsx
Last synced: 7 months ago
JSON representation
FastSheet is the fastest XLSX file parser for Ruby (at the time of release). It leverages a Rust library for high-performance parsing, making it significantly faster than other available solutions.
- Host: GitHub
- URL: https://github.com/dmk/fastsheet
- Owner: dmk
- License: mit
- Created: 2017-09-11T08:55:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T18:36:46.000Z (over 3 years ago)
- Last Synced: 2025-08-13T04:56:59.414Z (7 months ago)
- Topics: excel, gem, ruby, rust, spreadsheets, xlsx
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 25
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fastsheet
Fastest ruby gem for reading Excel documents.
## Installation
**You should have rust installed to use this gem.**
Add this line to your application's Gemfile:
```ruby
gem 'fastsheet'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install fastsheet
## Usage
Open a sheet:
```ruby
require 'fastsheet'
sheet = Fastsheet::Sheet.new('path/to/sheet.xlsx')
# number of columns
sheet.width
# number of rows
sheet.height
```
Get rows or columns:
```ruby
sheet.rows
sheet.columns
sheet.row(42)
sheet.column(1)
```
Iterators (returns enumerator if no block given):
```ruby
sheet.each_row { |r| ... }
sheet.each_column { |c| ... }
```
That's all API for now. Feel free to [open an issue](http://github.com/dkkoval/fastsheet/issues) if you need more.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/dkkoval/fastsheet.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).