csvkit 1.0.2
************


About
=====

[image: Build Status][image][image: Dependency Status][image][image:
Coverage Status][image][image: PyPI downloads][image][image:
Version][image][image: License][image][image: Support Python
versions][image]

csvkit is a suite of command-line tools for converting to and working
with CSV, the king of tabular file formats.

It is inspired by pdftk, gdal and the original csvcut tool by Joe
Germuska and Aaron Bycoffe.

If you need to do more complex data analysis than csvkit can handle,
use agate.

Important links:

* Repository:    https://github.com/wireservice/csvkit

* Issues:        https://github.com/wireservice/csvkit/issues

* Documentation: http://csvkit.rtfd.org/

* Schemas:       https://github.com/wireservice/ffs

* Buildbot:      https://travis-ci.org/wireservice/csvkit


Why csvkit?
===========

Because it makes your life easier.

Convert Excel to CSV:

   in2csv data.xls > data.csv

Convert JSON to CSV:

   in2csv data.json > data.csv

Print column names:

   csvcut -n data.csv

Select a subset of columns:

   csvcut -c column_a,column_c data.csv > new.csv

Reorder columns:

   csvcut -c column_c,column_a data.csv > new.csv

Find rows with matching cells:

   csvgrep -c phone_number -r "555-555-\d{4}" data.csv > new.csv

Convert to JSON:

   csvjson data.csv > data.json

Generate summary statistics:

   csvstat data.csv

Query with SQL:

   csvsql --query "select name from data where age > 30" data.csv > new.csv

Import into PostgreSQL:

   csvsql --db postgresql:///database --insert data.csv

Extract data from PostgreSQL:

   sql2csv --db postgresql:///database --query "select * from data" > new.csv

And much more…


Table of contents
=================

* Tutorial

  * Getting started

    * About this tutorial

    * Installing csvkit

    * Getting the data

    * in2csv: the Excel killer

    * csvlook: data periscope

    * csvcut: data scalpel

    * Putting it together with pipes

    * Summing up

  * Examining the data

    * csvstat: statistics without code

    * csvgrep: find the data you need

    * csvsort: order matters

    * Summing up

  * Power tools

    * csvjoin: merging related data

    * csvstack: combining subsets

    * csvsql and sql2csv: ultimate power

    * Summing up

  * Going elsewhere with your data

    * csvjson: going online

    * csvpy: going into code

    * csvformat: for legacy systems

    * Summing up

* Reference

  * Input

    * in2csv

    * sql2csv

  * Processing

    * csvclean

    * csvcut

    * csvgrep

    * csvjoin

    * csvsort

    * csvstack

  * Output and Analysis

    * csvformat

    * csvjson

    * csvlook

    * csvpy

    * csvsql

    * csvstat

  * Common arguments

    * Arguments common to all tools

* Tips and Troubleshooting

  * Tips

    * Reading compressed CSVs

    * Reading a CSV with a byte-order mark (BOM)

    * Specifying STDIN as a file

  * Troubleshooting

    * Installation

    * CSV formatting and parsing

    * CSV data interpretation

    * Slow performance

    * Database errors

    * Python standard output encoding errors

* Contributing to csvkit

  * Getting Started

  * Principles of development

  * How to contribute

  * A note on new tools

  * Streaming versus buffering

  * Legalese

* Release process

* License

* Changelog

  * 1.0.2 - April 28, 2017

  * 1.0.1 - December 29, 2016

  * 1.0.0 - December 27, 2016

  * 0.9.1 - March 31, 2015

  * 0.9.0

  * 0.8.0

  * 0.7.3

  * 0.7.2

  * 0.7.1

  * 0.7.0

  * 0.6.1

  * 0.5.0

  * 0.4.4

  * 0.4.3


Citation
========

When citing csvkit in publications, you may use this BibTeX entry:

   @Manual{,
     title = {csvkit},
     author = {Christopher Groskopf and contributors},
     year = 2016,
     url = {https://csvkit.readthedocs.org/}
   }


Authors
=======

The following individuals have contributed code to csvkit:

* Christopher Groskopf

* Joe Germuska

* Aaron Bycoffe

* Travis Mehlinger

* Alejandro Companioni

* Benjamin Wilson

* Bryan Silverthorn

* Evan Wheeler

* Matt Bone

* Ryan Pitts

* Hari Dara

* Jeff Larson

* Jim Thaxton

* Miguel Gonzalez

* Anton Ian Sipos

* Gregory Temchenko

* Kevin Schaul

* Marc Abramowitz

* Noah Hoffman

* Jan Schulz

* Derek Wilson

* Chris Rosenthal

* Davide Setti

* Gabi Davar

* Sriram Karra

* James McKinney

* Aaron McMillin

* Matt Dudys

* Joakim Lundborg

* Federico Scrinzi

* Chris Rosenthal

* Shane StClair

* raistlin7447

* Alex Dergachev

* Jeff Paine

* Jeroen Janssens

* Sébastien Fievet

* Travis Swicegood

* Ryan Murphy

* Diego Rabatone Oliveira

* Matt Pettis

* Tasneem Raja

* Richard Low

* Kristina Durivage

* Espartaco Palma

* pnaimoli

* Michael Mior

* Jennifer Smith

* Antonio Lima

* Dave Stanton

* Pedrow

* Neal McBurnett

* Anthony DeBarros

* Baptiste Mispelon

* James Seppi

* Karrie Kehoe

* Geert Barentsen

* Cathy Deng

* Eric Bréchemier

* Neil Freeman

* Fede Isas

* Patricia Lipp

* Kev++

* edwardros

* Martin Burch

* Pedro Silva

* hydrosIII

* Tim Wisniewski

* Santiago Castro

* Dan Davison

* Éric Araujo

* Sam Stuck

* Edward Betts

* Jake Zimmerman


Indices and tables
==================

* Index

* Module Index

* Search Page
