Scala-CSV
fs2-data
Scala-CSV | fs2-data | |
---|---|---|
5 | 2 | |
685 | 140 | |
- | 1.4% | |
7.2 | 9.2 | |
14 days ago | 5 days ago | |
Scala | Scala | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Scala-CSV
-
Returning Array after importing data from CSV
Also unless this is an exercise, you'd better use a CSV library, scala-csv is compatible with Scala 3 for instance.
-
Struggle to read csv file
You can use this library: https://github.com/tototoshi/scala-csv to convert each line to case classes.
- How do i process a cvs file into objects ?
-
How do i read a csv file and parse it by , but ignore "ewf,wef" ?
Another library was linked. I use https://github.com/tototoshi/scala-csv often
-
How do I create objects from the rows in a csv file and use it as a source?
Alternatively, it might be useful to consider leveraging iterators from scala-csv and then convert that iterator to an akka source. In general, I often try to leverage a CSV parsing library instead of rolling my own simple solution. CSV files can be a bit thorny to deal with.
fs2-data
-
How do I process gigabytes size file?
If it's a CSV file look at fs2-data.
-
I just released xml-spac 0.9! It's a library for handling streaming XML/JSON data by writing declarative-style consumers. Now with a native integration with Cats and FS2!
Yet another cool thing is that I added an integration with https://github.com/satabin/fs2-data which lets you use their parsing logic as the underlying event source instead of the Javax/StAX classes for XML, or instead of the Jackson library for JSON.
What are some alternatives?
kantan.csv - CSV handling library for Scala
todo-http4s-doobie - A sample project of a microservice using http4s, doobie, and circe.
fm-flatfile - Scala Library for Reading Flat File Data (CSV/TSV/XLS/XLSX)
cormorant - A CSV Handling Library for FP.
xs4s - XML Streaming for Scala including FS2/cats support
alpakka - Alpakka is a Reactive Enterprise Integration library for Java and Scala, based on Reactive Streams and Akka.
xml-spac - Handle streaming XML and JSON with declarative, composable parsers
borer - Efficient CBOR and JSON (de)serialization in Scala
circe-yaml - YAML parser for circe using SnakeYAML
ExternData - :page_facing_up: Modelica library for data I/O of CSV, INI, JSON, MATLAB MAT, SSV, TIR, Excel XLS/XLSX and XML files