You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jbdesbas, thanks for the kinds words and for opening this issue! What exactly do you have in mind for the functionality that we can add to CleverCSV to make this easier? A wrapper function perhaps that returns dicts or rows of the CSV file similar to stream_table and stream_dicts (or modification of these to accept sys.stdin)?
Note that the example you shared is very similar to the standardize command in the CLI. If that command is what you're looking for, issue #107 could capture your request too (please let me know).
Hi @GjjvdBurg
Yes, I think read/stream table accepting sys.stdin instead of just filename would be a great improvement. 馃憤
My need is sligthy different that the standardize command do : standardizekeep the original encoding for the output file, but I need an UTF8 file as output (regardless of orignal encoding). Additionally, my original script do other stuff between reading and writing (add suffix in order to deduplicate columns names).
However, standardize should accept stdin as input too.
Hi,
I just discovered this great project, thanks a lot for this amazing work 馃槂
Since CSV processing usually occurs in data flow process, it would be great to improve conveniency as reading CSV data through stdin.
Writing to stdout is easy already, because sys.stdout is passed directly to csv.writer , but reading is a bit more tricky.
The text was updated successfully, but these errors were encountered: