Fable library for Spreadsheet creation and manipulation
Project description
FsSpreadsheet
Spreadsheet creation and manipulation in FSharp
DSL
#r "nuget: FsSpreadsheet"
open FsSpreadsheet.DSL
let dslTree =
workbook {
sheet "MySheet" {
row {
cell {1}
cell {2}
cell {3}
}
row {
4
5
6
}
}
}
let spreadsheet = dslTree.Value.Parse()
ExcelIO
#r "nuget: FsSpreadsheet.ExcelIO"
open FsSpreadsheet.ExcelIO
spreadsheet.ToFile(excelFilePath)
------->
Code Examples
let tables = workbook.GetTables()
let worksheets = workbook.GetWorksheets()
// get worksheet and its table as tuple
let worksheetsAndTables =
tables
|> List.map (
fun t ->
let associatedWs =
worksheets
|> List.find (
fun ws ->
ws.Tables
|> List.exists (fun t2 -> t2.Name = t.Name)
)
associatedWs, t
)
Develop
Build QuickStart
If not already done,
- install .NET SDK
- install Node.js
In any shell, run
dotnet tool restore
npm install
build.cmd <target>
where<target>
may be- if
<target>
is empty, it just runs dotnet build after cleaning everything runtests
to run unit testsruntestsjs
to only run JS unit testsruntestsdotnet
to only run .NET unit tests
releasenotes semver:<version>
where<version>
may bemajor
,minor
, orpatch
to update RELEASE_NOTES.mdpack
to create a NuGet releasepackprelease
to create a NuGet prerelease
builddocs
to create docsbuilddocsprerelease
to create prerelease docs
watchdocs
to create docs and run them locallywatchdocsprelease
to create prerelease docs and run them locallypublishnuget
to create a NuGet release and publish itpublishnugetprelease
to create a NuGet prerelease and publish it
- if
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fsspreadsheet-5.2.0.tar.gz
(183.0 kB
view hashes)
Built Distribution
fsspreadsheet-5.2.0-py3-none-any.whl
(237.4 kB
view hashes)
Close
Hashes for fsspreadsheet-5.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb56f579ab42d61553c65a953ae2aabb422073d71b8316589371d3f9e9e6284 |
|
MD5 | d61e63501ef4d8ab44a881899fe7060d |
|
BLAKE2b-256 | c785fbd84c630e74f3a8a77a22ef8345666ccfb672b6ecedeaa20522629b019d |