latest release: 0.5.1

pyid3lib is a Python module for editing ID3v2 tags of MP3 audio files. It requires id3lib.

Here are some examples of using it to read and modify tag data:

Python 2.2 (#6, Jan 14 2002, 21:10:07) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyid3lib
>>> x = pyid3lib.tag( 'song.mp3' )
>>> x.artist
'Meat Beat Manifesto'
>>> x.title
'Jynweythek'
>>> x.artist = 'Aphex Twin'
>>> [i['frameid'] for i in x]
['TALB', 'TPOS', 'TYER', 'TIT2', 'TRCK', 'TCON', 'TLEN', 'APIC', 'TPE1']
>>> x[x.index('TIT2')]
{'text': 'Jynweythek', 'textenc': 0, 'frameid': 'TIT2'}
>>> x.update()
>>> 

Somewhat more extensive documentation is available.

Visit the project page to download the latest release.

The module is open-source software, released under the GNU Lesser General Public License (LGPL).

Send me feedback if you find this package useful, or if you don't. My home page is here.


SourceForge Logo Doug Zongker
last modified 16 February 2002