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

Add support for return files like csv, xlsx and parquet. #20

Open
MarcSkovMadsen opened this issue Mar 21, 2020 · 2 comments
Open

Add support for return files like csv, xlsx and parquet. #20

MarcSkovMadsen opened this issue Mar 21, 2020 · 2 comments

Comments

@MarcSkovMadsen
Copy link

MarcSkovMadsen commented Mar 21, 2020

My Pain

I'm using Panel to create awesome analytics apps. On the side of that I would like to serve some of that awesome data to my users so that the app or dashboard I'm creating is not a dead end. This includes serving json, csv, xlsx, parquet etc.

I can see that Panel is adding support for rest api endpoints using tranquilizer. Thats great. See holoviz/panel#1164

But as far as I can see from the documentation tranquilizer does not support serving files like json, csv or parquet. So Panel will not be able to that (I guess).

Solution

Please add support for serving files like csv, xlsx and parquet.

@MarcSkovMadsen
Copy link
Author

MarcSkovMadsen commented Mar 21, 2020

See also my requirements/ hopes for Panel tranquilizer here holoviz/panel#1164 (comment).

@AlbertDeFusco
Copy link
Member

AlbertDeFusco commented Mar 23, 2020

Right now Tranquilizer can return any JSON serializable object. I think we might use Pandas to convert the data type and set the appropriate mime type. This would be a good use for the function return hinting.

Something you might look at is the Intake server capabilities. I think there are some great opportunities to integrate with tranquilizer.

https://intake.readthedocs.io/en/latest/server.html

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

No branches or pull requests

2 participants