Further automating databases – file_lister_peewee.py

In this iteration, we will use third-party Python modules to further automate our SQL and HTML setup. This will introduce extra overhead; however, our script will be simpler to implement and more streamlined, which would allow us to more easily develop further functionality in the future. Developing with an eye towards the future helps prevent us from rewriting the entire script for every minor feature request.

We have imported the majority of the standard libraries required before and added the third-party unicodecsv module (version 0.14.1). This module wraps around the built-in csv module and automatically provides the Unicode support for the CSV output. To keep things familiar, we can even ...

Get Learning Python for Forensics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.