- A simple-to-use zero-dependency Scala 3 library for managing tabular data such as
.csv
and.tsv
. - The code is the doc (less than 300 lines of code).
Use tabby with scala-cli by adding this magic comment in the beginning of your scala file (note the >
after //
):
//> using lib "tabby:tabby:0.2.3,url=https://github.com/bjornregnell/tabby/releases/download/v0.2.3/tabby_3-0.2.3.jar"
//> using scala "3"
import tabby.*
@main def run = println(Grid("a", "b", "c")(1, 2, 3))
Or use the sbt
build tool with this in your build.sbt
:
val tabbyVer = "0.2.3"
libraryDependencies += "tabby" % "tabby" % tabbyVer from
s"https://github.com/bjornregnell/tabby/releases/download/v$tabbyVer/tabby_3-$tabbyVer.jar"
-
The Scala version in your
build.sbt
should bescalaVersion := "3.0.2"
or higher -
The sbt version in your in your
project/build.properties
should besbt.version=1.5.5
or higher
Or download the jar and put it on your classpath manually.
sbt package
sbt package
and upload jar to releases of this repo