projects / 06 of 08

Filekit

Offline command-line tools for the file chores you'd otherwise upload somewhere: merge, compress and redact PDFs, shrink images and video.

PythonCLIHomebrewSource ↗

What it is

A set of offline command-line tools for the small file chores that usually mean uploading something to a website: merge PDFs and images, compress, drop pages, fix a misspelled name in place, redact text or black out an area. It also pads and compresses images, removes photo backgrounds, and shrinks videos.

How it works

One Python CLI, installed with Homebrew, with a subcommand per job. Everything runs on your machine and nothing is uploaded. The input is never modified: every command writes a new file and refuses an output path that points at its input.

About the name

It started as pdf-tools, because merging and redacting PDFs was all it did. Then it picked up images, then video, and the name stopped describing it. I call it Filekit now; the repo and the command are still pdf-tools until I get around to renaming them, which is why the clip above says so.

Gallery

Every command, with an example
Every command, with an example
Merging two PDFs and a photo into one file
Merging two PDFs and a photo into one file
Redacting a name, then checking it's gone
Redacting a name, then checking it's gone