File tree 6 files changed +25
-5
lines changed
6 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ Important links:
7
7
* Repository: https://github.com/onyxfish/csvkit
8
8
* Issues: https://github.com/onyxfish/csvkit/issues
9
9
* Documentation: http://csvkit.rtfd.org/
10
- * Schemas: https://github.com/onyxfish/ffs
10
+ * Schemas: https://github.com/onyxfish/ffs
11
+ * Buildbot: http://travis-ci.org/#!/onyxfish/csvkit
Original file line number Diff line number Diff line change 54
54
# built documents.
55
55
#
56
56
# The short X.Y version.
57
- version = '0.4.3 '
57
+ version = '0.4.4 '
58
58
# The full version, including alpha/beta/rc tags.
59
- release = '0.4.3 (beta)'
59
+ release = '0.4.4 (beta)'
60
60
61
61
# The language for content autogenerated by Sphinx. Refer to documentation
62
62
# for a list of supported languages.
Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ License
130
130
131
131
.. include :: ../COPYING
132
132
133
+ Changelog
134
+ =========
135
+
136
+ .. include :: ../CHANGELOG
137
+
133
138
Indices and tables
134
139
==================
135
140
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Generate SQL statements for a CSV file or create execute those statements direct
20
20
Generate a SQL CREATE TABLE statement for a CSV file.
21
21
22
22
positional arguments:
23
- FILE The CSV file to operate on. If omitted, will accept
23
+ FILE The CSV file(s) to operate on. If omitted, will accept
24
24
input on STDIN.
25
25
26
26
optional arguments:
@@ -41,6 +41,9 @@ Generate SQL statements for a CSV file or create execute those statements direct
41
41
omitted, the filename (minus extension) will be used.
42
42
--no-constraints Generate a schema without length limits or null
43
43
checks. Useful when sampling big tables.
44
+ --no-create Skip creating a table. Only valid when --insert is
45
+ specified.
46
+ --blanks Do not coerce empty strings to NULL values.
44
47
45
48
Also see: :doc: `common_arguments `.
46
49
@@ -62,3 +65,8 @@ For large tables it may not be practical to process the entire table. One soluti
62
65
63
66
$ head -n 20 examples/realdata/FY09_EDU_Recipients_by_State.csv | csvsql --no-constraints --table fy09
64
67
68
+ Create tables for an entire folder of CSVs and import data from those files directly into Postgres::
69
+
70
+ $ createdb test
71
+ $ csvsql --db postgresql:///test --insert examples/*.csv
72
+
Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ Convert the 2000 census geo headers file from fixed-width to CSV and from latin-
50
50
51
51
$ in2csv -e iso-8859-1 -f fixed -s examples/realdata/census_2000/census2000_geo_schema.csv examples/realdata/census_2000/usgeo_excerpt.upl > usgeo.csv
52
52
53
+ .. note ::
54
+
55
+ A library of fixed-width schemas is maintained in the ``ffs `` project:
56
+
57
+ https://github.com/onyxfish/ffs
58
+
53
59
Convert an Excel .xls file::
54
60
55
61
$ in2csv examples/test.xls
Original file line number Diff line number Diff line change 4
4
5
5
setup (
6
6
name = 'csvkit' ,
7
- version = '0.4.3 ' ,
7
+ version = '0.4.4 ' ,
8
8
description = 'A library of utilities for working with CSV, the king of tabular file formats.' ,
9
9
long_description = open ('README' ).read (),
10
10
author = 'Christopher Groskopf' ,
You can’t perform that action at this time.
0 commit comments