Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/freymaurer/fable.openpyxl
- Owner: Freymaurer
- License: mit
- Created: 2023-11-28T11:27:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-23T08:38:08.000Z (10 months ago)
- Last Synced: 2024-02-23T09:32:21.608Z (10 months ago)
- Topics: fable, fable-bindings, openpyxl, python, xlsx
- Language: F#
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.Openpyxllet 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` .