Skip to content
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

Read from STDIN, STDOUT and from URL #12

Open
vishnus opened this issue Jul 14, 2017 · 4 comments
Open

Read from STDIN, STDOUT and from URL #12

vishnus opened this issue Jul 14, 2017 · 4 comments

Comments

@vishnus
Copy link

vishnus commented Jul 14, 2017

Should be possible to pass CSV/JSON data in STDIN or read from STDOUT of another command or from URL download. This helps in visualizing JSON or CSV responses

@chfw
Copy link

chfw commented Jul 14, 2017

You can try this:

$ pyexcel transcode --sheet-index 0 https://github.com/vividvilla/csvtotable/raw/master/sample/goog.csv goog.sortable.html

and what you will need is:

$ pip install pyexcel pyexcel-cli pyexcel-sortable

pyexcel-sortable wraps csvtotable to pyexcel.

@chfw
Copy link

chfw commented Jul 14, 2017

And you can do from stdin too:

curl -L https://github.com/vividvilla/csvtotable/raw/master/sample/goog.csv | pyexcel transcode --sheet-index 0 --source-file-type csv - goog2.sortable.html

What's more, you can render xls, xlsx and ods using csvtotable as well:

$ pyexcel transcode --sheet-index 0 https://github.com/pyexcel/excel2table/raw/master/sample/goog.ods goog.ods.sortable.html
$ pyexcel transcode --sheet-index 0 https://github.com/pyexcel/excel2table/raw/master/sample/goog.xls goog.xls.sortable.html

if you would install:

$ pip install pyexcel-xls
$ pip install pyexcel-odsr

@chfw
Copy link

chfw commented Jul 14, 2017

Finally for stdout:

$ curl -L https://github.com/vividvilla/csvtotable/raw/master/sample/goog.csv | pyexcel transcode --sheet-index 0 --source-file-type csv --output-file-type 'sortable.html' - -

@migs2173
Copy link

hi I tried to install and run but always an error invalid value input file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants