tinytag is a library for reading music meta data of MP3, OGG, FLAC and Wave files with python
Features:
- Read tags and length of music files
- supported formats
- MP3 (ID3 v1, v1.1, v2.2, v2.3+)
- Wave
- OGG
- FLAC
- pure python
- supports python 2 and 3 (without 2to3)
- is tested
- Just about 300 lines of code (just include it in your project!)
tinytag only provides the minimum needed for reading MP3, OGG, FLAC and Wave meta-data. It can determine track number, total tracks, title, artist, album, year and length in seconds.
from tinytag import TinyTag
info = TinyTag.get('/some/music.mp3')
print('This track is by %s.' % info.artist)
print('It is %f seconds long.' % info.length)
supported python versions:
- 2.6
- 2.7
- 3.2
- 3.3
- pypy
and possibly more.