I need to process all the MP3 files in a folder by reading/changing some ID3 tags as well as obtaining specifics about file size and so on. The end goal is to build an RSS file so these MP3's will be a custom podcast. I see the need for maybe up to 200 files (rows?) and 5 or 6 pieces of data (columns?) about each file. Need to read all data in, use the data to determine sort order, and build rss/xml file. Not sure best approach in Python regarding the way to handle the data.
Saw this code idea for a "dictionary of dictionaries", but this looks a bit clunky?
mydict = {'MP3_File_1.mp3':
{'SIZE': '123456789','MODDATE': '20120508', 'TRKNUM': '152'},
'MP3_File_2.mp3':
{'SIZE': '45689654', 'MODDATE': '20120515', 'TRKNUM': '003'},
'MP3_File_3.mp3':
{'SIZE': '98754651', 'MODDATE': '20130101', 'TRKNUM': '062'}}
Either a real database or pyTables seem like overkill. I'm also considering creating a custom class but don't have enough experience in Python (yet). Is there a module/best practice I am missing?