Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/freymaurer/fable.openpyxl

Fable bindings for the python xlsx reader writer openpyxl.
https://github.com/freymaurer/fable.openpyxl

fable fable-bindings openpyxl python xlsx

Last synced: about 1 month ago
JSON representation

Fable bindings for the python xlsx reader writer openpyxl.

Awesome Lists containing this project

README

        

# Fable.Openpyxl

Fable bindings for the python xlsx reader/writer **openpyxl**.

> Based on openpyxl version `3.1.2`.

# Install

![Nuget](https://img.shields.io/nuget/v/Fable.Openpyxl?logo=nuget&color=success)
![Nuget](https://img.shields.io/nuget/dt/Fable.Openpyxl?logo=nuget)

```xml

```

```fsharp
#r "nuget: Fable.Openpyxl, 0.1.0"
```

# Docs

Fable.Openpyxl follows openpyxl syntax as close as possible. Most documentation from openpyxl can be used for Fable.Openpyxl together with built in F# intellisense.

Checkout the [tests](/tests) for implemented functions.

```fsharp
// minimal read
open Fable.Openpyxl

let path_to_file = @"tests/TestFiles/MinimalTest.xlsx"

let wb = openpyxl.load_workbook(path_to_file)
let ws = wb.active
let cell = ws.cell(row = 1, column = 1)
printfn "%A" (cell.value = "A1") // true
```

# Development

1. `dotnet tool restore`
2. `py -m venv .venv`, creates python virtual environment.
3. `.\.venv\Scripts\python.exe -m pip install -r requirements.txt`, install local python dependencies

## Python Dependency Management

- Install new local dependencies with `.\.venv\Scripts\pip.exe install `
- Freeze local dependencies with `.\.venv\Scripts\python.exe -m pip freeze > requirements.txt` .