clojure.data.csv

CSV reader/writer to/from Clojure data structures.

Follows the RFC4180 specification but is more relaxed.

Releases and Dependency Information

Latest stable release: 0.1.3

Leiningen dependency information:

[org.clojure/data.csv "0.1.3"]

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>data.csv</artifactId>
  <version>0.1.3</version>
</dependency>

Example Usage

(require '[clojure.data.csv :as csv]
         '[clojure.java.io :as io])

(with-open [in-file (io/reader "in-file.csv")]
  (doall
    (csv/read-csv in-file)))

(with-open [out-file (io/writer "out-file.csv")]
  (csv/write-csv out-file
                 [["abc" "def"]
                  ["ghi" "jkl"]]))

Refer to the API documentation for additional information.

Developer Information

Change Log

  • Release 0.1.3 on 2015-08-10

    • DCSV-4 Allow carriage return by itself as a record separator
  • Release 0.1.2 on 2012-02-24

    • Fixed keyword params for write-csv
  • Release 0.1.1 on 2012-02-14

    • Added quote? keyword param to write-csv
    • Code cleanup
  • Release 0.1.0 on 2011-08-26

    • Initial release.

Copyright and License

Copyright (c) Jonas Enlund, 2012. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.



clojure.data.csv

CSV读取器/写入器到/从Clojure数据结构

遵循 RFC4180 规范,但更轻松。

Releases and Dependency Information

最新稳定版本:0.1.3

Leiningen 依赖关系信息:

[org.clojure/data.csv "0.1.3"]

Maven 依赖关系信息:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>data.csv</artifactId>
  <version>0.1.3</version>
</dependency>

Example Usage

(require '[clojure.data.csv :as csv]
         '[clojure.java.io :as io])

(with-open in-file (io/reader "in-file.csv"))

(with-open out-file (io/writer "out-file.csv"))

请参阅 API文档 有关其他信息。

Developer Information

Change Log

  • 在2015-08-10发布0.1.3

    • DCSV-4 允许携带 返回本身作为记录分隔符
  • 在2012-02-24发布0.1.2

    • 修正了 write-csv
    • 的关键字参数
  • 于2012-02-14发布0.1.1

      报价?关键字param to write-csv
    • 代码清理
  • 于2011-08-26发布0.1.0

    • 初始版本。

Copyright and License

版权所有(c)Jonas Enlund,2012.保留所有权利。使用和 Eclipse公司涵盖了此软件的分发条款 许可证1.0( http://opensource.org/licenses/eclipse-1.0.php ),可以 可以在epl-v10.html文件的根目录中找到。 通过以任何方式使用本软件,您同意受到约束 这个许可证的条款。您不能删除此通知或任何 其他,从这个软件。




相关问题推荐