Go to file
dependabot[bot] 4ccef1acaf
Bump rustler from 0.22.0 to 0.22.2 in /native/xler_native (#33)
Bumps [rustler](https://github.com/rusterlium/rustler) from 0.22.0 to 0.22.2.
- [Release notes](https://github.com/rusterlium/rustler/releases)
- [Changelog](https://github.com/rusterlium/rustler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rusterlium/rustler/compare/rustler-0.22.0...rustler-0.22.2)

---
updated-dependencies:
- dependency-name: rustler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 07:48:15 +03:00
.github Setup CI and Bump Rust (#15) 2020-10-20 18:27:19 +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 Bump rustler from 0.22.0 to 0.22.2 in /native/xler_native (#33) 2021-10-18 07:48:15 +03: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
.tool-versions Setup CI and Bump Rust (#15) 2020-10-20 18:27:19 +02:00
LICENSE Add LICENSE 2019-04-11 21:43:27 +00:00
mix.exs Bump rustler from 0.21.1 to 0.22.0 (#26) 2021-06-24 06:25:45 +02:00
mix.lock Bump rustler from 0.22.0 to 0.22.2 (#34) 2021-10-18 07:48:07 +03:00
README.md Bump version (#19) 2020-10-20 18:33:35 +02: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.6.0"}
  ]
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"]]}