AutomateTheBoringStuff.Ch17.Projects package

Submodules

AutomateTheBoringStuff.Ch17.Projects.P2_findPhotoFolders module

Find photo folders

This program identifies all folders in /home/jose where over 50% of the files are images of a specified size.

AutomateTheBoringStuff.Ch17.Projects.P2_findPhotoFolders.main()[source]

AutomateTheBoringStuff.Ch17.Projects.P3_seatingCards module

Seating cards

Chapter 13 included a practice project to create custom invitations from a list of guests in a plaintext file - P3_invitations. As an additional project, use PIL to create images for custom seating cards for your guests. For each of the guests listed in guests.txt, generate an image file with the guest’s name and some flowery decoration.

To ensure that each seating card is the same size, add a black rectangle on the edges of the invitation image so that when the image is printed out, there will be a guideline for cutting. The PNG files that PIL.Image produces are set to 72 pixels per inch, so a 4×5-inch card would require a 288×360-pixel image.

Note

AutomateTheBoringStuff.Ch17.Projects.P3_seatingCards.main()[source]

Module contents