https://github.com/xuri/excelize-rs
Rust language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
https://github.com/xuri/excelize-rs
excel excelize rust xls xlsx
Last synced: 7 months ago
JSON representation
Rust language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
- Host: GitHub
- URL: https://github.com/xuri/excelize-rs
- Owner: xuri
- License: bsd-3-clause
- Created: 2021-01-06T16:01:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T08:31:32.000Z (over 1 year ago)
- Last Synced: 2025-03-19T00:41:30.587Z (7 months ago)
- Topics: excel, excelize, rust, xls, xlsx
- Language: Rust
- Homepage:
- Size: 76.2 KB
- Stars: 54
- Watchers: 6
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# excelize
## Introduction
Excelize is a pure Rust port of Go [Excelize](https://github.com/xuri/excelize) library that allow you to write to and read from XLAM / XLSM / XLSX / XLTM / XLTX files. Supports reading and writing spreadsheet documents generated by Microsoft Excel™ 2007 and later. Supports complex components by high compatibility. The full API docs can be found at [docs reference](https://xuri.me/excelize/).
## Reading spreadsheet
The following constitutes the bare to read a spreadsheet document.
```rust
extern crate excelize;use excelize::*;
fn main() {
let path = String::from("Book1.xlsx");
let wb = Spreadsheet::open_file(path);
match wb {
Ok(ws) => match ws.get_cell_value("Sheet1", 1, 1) {
Ok(c) => {
let cell = String::from(c);
println!("the value of cell A1 is: {}", cell)
}
Err(e) => println!("{:?}", e),
},
Err(e) => print!("{:?}", e),
}
}
```## Contributing
Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change. XML is compliant with [part 1 of the 5th edition of the ECMA-376 Standard for Office Open XML](https://www.ecma-international.org/publications-and-standards/standards/ecma-376/).
## Licenses
This program is under the terms of the BSD 3-Clause License. See [https://opensource.org/licenses/BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause).