Packwars is a varient of Magic:The Gathering.
This tool let's you create a packwars deck with using textfiles for each rarity you want.
It exports as a .cod file for cockatrice.

The code is rushed, and I'm new to file input/output, so the code might look horrible.