Skip to main content
net6.0.NETStandard2.0

Fable bindings for openpyxl

Published
Sep 25, 2024
2y ago
Total Downloads
3.3K
3,297

Install

dotnet add package Fable.openpyxl --version 1.0.0-alpha.1
ProductVersions
.NET
net6.0
.NET Standard
netstandard2.0

README

Fable.Openpyxl

Fable bindings for the python xlsx reader/writer openpyxl.

Based on openpyxl version 3.1.2.

Install

Nuget Nuget

<PackageReference Include="Fable.Openpyxl" Version="0.1.0" />
#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 for implemented functions.

// 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 <PACKAGE_NAME>
  • Freeze local dependencies with .\.venv\Scripts\python.exe -m pip freeze > requirements.txt .

Changes from Previous Version

No structural changes between v0.2.0 and v1.0.0-alpha.1.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.