forked from wireservice/csvkit
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update original #1
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…vkit into richardalow-csvcut-open-range
removed [-j JOIN] option from usage, not sure it is valid - this is my usage output: ``` $ pip show csvkit --- Name: csvkit Version: 0.9.0 Location: /usr/local/lib/python2.7/site-packages Requires: xlrd, sqlalchemy, openpyxl, six, python-dateutil, dbf $ csvjoin usage: csvjoin [-h] [-d DELIMITER] [-t] [-q QUOTECHAR] [-u {0,1,2,3}] [-b] [-p ESCAPECHAR] [-z MAXFIELDSIZE] [-e ENCODING] [-S] [-v] [-l] [--zero] [-c COLUMNS] [--outer] [--left] [--right] [FILE [FILE ...]] csvjoin: error: You must specify at least two files to join. ```
This is to address issue #355 and to allow json to be 'streamed' - that is, each object in the array be written out separated by a newline, rather than output as one single array. Allowing this means we can convert large csv streams to json without waiting until the end to see the output. Many json-processing tools can deal with streaming json (for instance jq).
Streaming doesn't make sense for when data is being output as one json object - that is if you specify a key column or lat/lon options. If you try and specify --stream and also --key or --lat/--lon then you will get an error.
(PS: Great tool, thanks!)
Grammar nazi
Update csvjoin.rst
…nifersmith/csvkit into jennifersmith-355_streaming_json_documents
…into themiurgo-json-multiline
Typo correction.
A few changes to Lesson 3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.