Skip to content

wgrover/jamie

Repository files navigation

jamie

Prints labels from the command line.

Inspired by (and named after) Jamie Hyneman's meticulously labeled storage bins at M5 Industries, shown here on MythBusters:

Jamie's storage system at M5

jamie.py uses a brute-force testing of font sizes and line wraps to fit the text onto a 3 inch by 2 inch label as efficiently as possible.

Dependencies

Requires Pillow:

pip3 install Pillow

jamie.py also uses the GNU FreeFont FreeSansBold.ttf, included in this repository for convenience.

Printer and labels

Tested using this iDPRT SP410 thermal label printer, though it should work with other printers.

Tested using a roll of 3 inch by 2 inch labels, but other label sizes are possible if you edit width and height in the code.

Usage

Running

python3 jamie.py "Depleted uranium"

automatically prints this label:



Here are some of the labels in use in my home lab space:

About

Prints labels from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages