Issue
I'm trying to generate excel/CSV files as a response generated at runtime. I tried using flask-excel but not getting the expected results. For example: if the data in DB is,
| name | age | sex | | ---- | --- | ----- | | Ram | 25 | male | | Sita | 24 | female|
the output excel should look similar to this.
Solution
Flask Excel does the job, but the installation steps are slightly different from what's mentioned on the documentation
- import flask_excel
- init
- Use flask_excel.make_response_from_array or other relevant functions.
This should work
Answered By - Ganesh Sharma
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.