Is there a way to programmatically give items to a single player character?

TerrariViewer is the best character editor I've used for the game (and I am one for cheat codes)