A fun little python tool to package up a bunch of text files into a single file. So you can like email it to yourself.
AI was used for the creation of this tool. The robot wrote the text below: Usage: python package_project.py [root_dir] [output_file]
Design notes:
- Respects .gitignore (via
git ls-files --exclude-standard) plus a small built-in ignore list for tooling and generated artifacts. - Every file (header + content) is base64-encoded and wrapped at 76 chars, so no structural line is long enough for an email client to re-wrap and mangle. The unpackage script strips whitespace and re-joins, so the bundle survives email transfer intact.
- A sha256 checksum per file lets the unpackage script verify integrity.