zo3adams / tinytag

Read music meta data and length of MP3, OGG, FLAC and Wave files with python 2 or 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinytag

tinytag is a library for reading music meta data of MP3, OGG, FLAC and Wave files with python

Build Status

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 a few hundred 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.

About

Read music meta data and length of MP3, OGG, FLAC and Wave files with python 2 or 3

License:GNU General Public License v3.0