opencsv


License

License

Categories

Categories

CSV Data Data Formats opencsv Tabula PDF
GroupId

GroupId

com.nrinaudo
ArtifactId

ArtifactId

tabulate-opencsv_2.10
Last Version

Last Version

0.1.7
Release Date

Release Date

Type

Type

jar
Description

Description

opencsv
opencsv
Project Organization

Project Organization

com.nrinaudo
Source Code Management

Source Code Management

https://github.com/nrinaudo/tabulate

Download tabulate-opencsv_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/com.nrinaudo/tabulate-opencsv_2.10/ -->
<dependency>
    <groupId>com.nrinaudo</groupId>
    <artifactId>tabulate-opencsv_2.10</artifactId>
    <version>0.1.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.nrinaudo/tabulate-opencsv_2.10/
implementation 'com.nrinaudo:tabulate-opencsv_2.10:0.1.7'
// https://jarcasting.com/artifacts/com.nrinaudo/tabulate-opencsv_2.10/
implementation ("com.nrinaudo:tabulate-opencsv_2.10:0.1.7")
'com.nrinaudo:tabulate-opencsv_2.10:jar:0.1.7'
<dependency org="com.nrinaudo" name="tabulate-opencsv_2.10" rev="0.1.7">
  <artifact name="tabulate-opencsv_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.nrinaudo', module='tabulate-opencsv_2.10', version='0.1.7')
)
libraryDependencies += "com.nrinaudo" % "tabulate-opencsv_2.10" % "0.1.7"
[com.nrinaudo/tabulate-opencsv_2.10 "0.1.7"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.6
com.nrinaudo : tabulate_2.10 jar 0.1.7
com.opencsv : opencsv jar 3.6
org.typelevel : export-hook_2.10 jar 1.1.0

provided (4)

Group / Artifact Type Version
org.scoverage : scalac-scoverage-runtime_2.10 jar 1.1.1
org.scoverage : scalac-scoverage-plugin_2.10 jar 1.1.1
org.scala-lang : scala-reflect jar 2.10.6
com.github.mpilquist : simulacrum_2.10 jar 0.5.0

test (2)

Group / Artifact Type Version
com.nrinaudo : tabulate-laws_2.10 jar 0.1.7
org.scalatest : scalatest_2.10 jar 3.0.0-M7

Project Modules

There are no modules declared in this project.

kantan.csv

Build Status codecov Maven Central Join the chat at https://gitter.im/nrinaudo/kantan.csv

CSV is an unfortunate part of life. This attempts to alleviate the pain somewhat by letting developers treat CSV data as a simple iterator.

As much as possible, kantan.csv attempts to present a purely functional and safe interface to users. I've not hesitated to violate these principles internally however, when it afforded better performances. This approach appears to be somewhat successful.

Documentation and tutorials are available on the companion site, but for those looking for a few quick examples:

import java.io.File
import kantan.csv._         // All kantan.csv types.
import kantan.csv.ops._     // Enriches types with useful methods.
import kantan.csv.generic._ // Automatic derivation of codecs.

// Reading from a file: returns an iterator-like structure on (Int, Int)
new File("points.csv").asCsvReader[(Int, Int)](rfc)

// "Complex" types derivation: the second column is either an int, or a string that might be empty.
new File("dodgy.csv").asCsvReader[(Int, Either[Int, Option[String]])](rfc)

case class Point2D(x: Int, y: Int)

// Parsing the content of a remote URL as a List[Point2D].
new java.net.URL("http://someserver.com/points.csv").readCsv[List, Point2D](rfc.withHeader)

// Writing to a CSV file.
new File("output.csv").asCsvWriter[Point2D](rfc)
  .write(Point2D(0, 1))
  .write(Point2D(2, 3))
  .close()

// Writing a collection to a CSV file
new File("output.csv").writeCsv[Point2D](List(Point2D(0, 1), Point2D(2, 3)), rfc)

kantan.csv is distributed under the Apache 2.0 License.

Versions

Version
0.1.7