Go to file
dependabot-preview[bot] af97d279a7
Bump ex_doc from 0.21.2 to 0.21.3 (#1)
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.21.2 to 0.21.3.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.21.2...v0.21.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-03 15:52:44 +02:00
config First commit 2019-04-11 23:39:59 +02:00
lib Wrong function name 2019-04-23 13:05:28 +02:00
native/xler_native v0.4.1 2019-11-22 11:32:34 +01:00
test Up tool versions, fix warnings on rustler and add basic test 2019-08-23 05:15:22 +02:00
.formatter.exs First commit 2019-04-11 23:39:59 +02:00
.gitignore Add xls files to ignore 2019-06-28 00:14:14 +02:00
.gitlab-ci.yml Update .gitlab-ci.yml 2019-08-23 03:33:33 +00:00
.tool-versions Freeze rustler version on ref commit 2019-11-22 10:26:41 +00:00
LICENSE Add LICENSE 2019-04-11 21:43:27 +00:00
mix.exs v0.4.1 2019-11-22 11:32:34 +01:00
mix.lock Bump ex_doc from 0.21.2 to 0.21.3 (#1) 2020-04-03 15:52:44 +02:00
README.md v0.4.1 2019-11-22 11:32:34 +01:00

Xler

Xler uses the Calamine Rust library to get contents of Excel files.

Calamine supports:

  • excel (xls, xlsx, xlsm, xlsb, xla, xlam)
  • opendocument spreadsheets (ods)

Installation

If available in Hex, the package can be installed by adding xler to your list of dependencies in mix.exs:

def deps do
  [
    {:xler, "~> 0.4.1"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/xler.

Worksheets

To get the worksheets of a file you use:

Xler.worksheets("filename.xls")

and it will return as a tuple:

{:ok, ["Sheet 1"]}

Parse

To get the data of a worksheet you use:

Xler.parse("filename.xls", "Sheet 1")

and it will return as a tuple:

{:ok, [["Date", "Time"]]}