Summary
In this chapter, we looked at how we can deal with binary files and how Python's standard library, which comes pre-loaded with the necessary tools, can allow us to handle commonly used file formats such as CSV. We then moved on to learning how to read and write CSV files in Python using Python's CSV module. Later, we worked with the XlsxWriter
package, which provides us with the ability to generate Microsoft Excel-compatible files right from our Python environment without worrying about the internal formatting of the file.
The second half of the chapter was dedicated to learning how to use the weasyprint
library to generate PDF versions of HTML pages. This skill can come in handy when we want to provide our users with an easy option to print the HTML version of our page with any added CSS styling of our choosing. The last section of the chapter discussed how we can generate interactive graphs in Python and render them as HTML pages that can be viewed inside the...