Skip to content
forked from mihi-tr/csv-map

A clojure library for reading well formed csv files as collection of maps. (NEW MAINTAINER)

License

Notifications You must be signed in to change notification settings

WhittlesJr/csv-map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-map

A Clojure library that reads well formed csv files into a sequence of maps ({}) using the first line as column headers. It also supports writing csv's from the same structures

Installation

Leiningen:

[csv-map "0.1.3"]

tools-deps:

{csv-map {:mvn/version "0.1.3"}}

Usage

Like clojure-csv csv-map exposes two public functions: parse-csv and write-csv. Use it like:

(use 'csv-map.core)
(parse-csv (slurp "file.csv"))

To parse the column names into keywords use :key :keyword as options. csv-map uses clojure-csv as backend: this means you can pass any opts you would pass to clojure-csv into csv-map and the options will be passed on to clojure-csv's parse and write functions.

License

Copyright © 2013 Michael Bauer Modified work Copyright © 2019 Alex Whitt

Distributed under the Eclipse Public License 1.0, the same as Clojure (see LICENSE.md).

About

A clojure library for reading well formed csv files as collection of maps. (NEW MAINTAINER)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%