ID3v2-py is a library for reading, modifying and writing ID3v2 tags with python. It does not provide facilities for modifying ID3v1 tags.
A snippet of code is included below:
file = ID3v2("test.mp3") newFrame = {'TAG':'TIT2','text':'Test Title'} file.addFrame(newFrame) newFrame = {'TAG':'COMM','language':'enu','description':'testcomment','comment':'testing comment tags'} file.addFrame(newFrame) newFrame = {'TAG':'TRCK','text':'01'} file.addFrame(newFrame) file.write()
As you can see, the library is quite easy to use, but needs alot of work. Please visit the ID3v2-py page on sourceforge for more information, or to download the library.