Password Protected Files in Python

Posted on April 12, 2019 in blog • Tagged with python, pdf, msoffcrypto-tool, pikepdf

When working on a system that processes files, you're likely to run in to password protected files. Particularly in Japan, password-protected pdfs, office files, and zip files are the norm.

I turn down feature requests for zip files due to the possibility of them containing an undefined nested directory structure …


Continue reading

Working with ImageMagick's Wand Python Library

Posted on March 19, 2019 in blog • Tagged with python, python-wand, pdf

Handling images in wand can be deviously tricky, especially when you need a common system-wide resolution.

An example use-case:

I work on a system that sends & receives faxes. It also handles email attachments and draws text on to fixed format images (inquiries, order details, etc.).

Due to the fact that …


Continue reading

Property Testing: Why You Should Generate Test Data

Posted on August 31, 2017 in blog • Tagged with testing, property testing, python

This post is cross-posted to dev.to

I drank the functional programming cool-aid at my first real job. While I do not currently professionally develop with functional programming, I still apply what functional concepts I can -- property testing is a big one.

I'm going to cover three main points: - What's …


Continue reading