Stampy was made to deal with submission of assignments for an OOP course where each assignment needed to be compressed and each source file required a header containing the name and the username of the author. Rather than prepending this to each file by hand Stampy was created.
Stampy will assume all files to be in UTF-8.
python stam.py --compress --prepend Assignment-2 *.cs
This will prepend the contents of header.txt to all files ending with .cs in directory Assignment-2, excluding those that are listed in exclude.txt. It will also create a zip-file named Assignment-2.zip containing all files in directory Assignment-2 that don't match any of the rules in exclude.txt.
Exclude files contains rules, one per line, describing which files Stampy should ignore. Python's fnmatch-module is used.