13. Generating CSV, PDF, and Other Binary Files
Overview
This chapter teaches you how to generate files in different data formats, such as CSV, PDF, and other binary file formats (for example, Excel-compatible files) using some of the common libraries that are available inside Python. This knowledge will help you build web projects that let your users export and download records from your site into familiar CSV or Excel-based formats. You will also learn how to generate graph plots inside Python and render them as HTML and display them inside your web applications. Moreover, you will be able to build features that let users export your data in PDF format.