Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.28.0 to 0.29.3. - [Release notes](https://github.com/elixir-lang/ex_doc/releases) - [Changelog](https://github.com/elixir-lang/ex_doc/blob/v0.29.3/CHANGELOG.md) - [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.28.0...v0.29.3) --- updated-dependencies: - dependency-name: ex_doc dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| config | ||
| lib | ||
| native/xler_native | ||
| test | ||
| .formatter.exs | ||
| .gitignore | ||
| .tool-versions | ||
| LICENSE | ||
| mix.exs | ||
| mix.lock | ||
| README.md | ||
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"]]}