core


License

License

Categories

Categories

Tabula Data PDF
GroupId

GroupId

com.nrinaudo
ArtifactId

ArtifactId

tabulate_2.11
Last Version

Last Version

0.1.7
Release Date

Release Date

Type

Type

jar
Description

Description

core
core
Project Organization

Project Organization

com.nrinaudo
Source Code Management

Source Code Management

https://github.com/nrinaudo/tabulate

Download tabulate_2.11

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.7
org.typelevel : export-hook_2.11 jar 1.1.0

provided (4)

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

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
0.1.6
0.1.5
0.1.4