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, allows 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 allows us to generate Microsoft Excel-compatible files right from our Python environment without us having to worry about the internal formatting of the file.
The second half of this 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 this chapter discussed how we can generate interactive graphs in Python and render them as HTML pages that can be viewed inside the browser...