[prev in list] [next in list] [prev in thread] [next in thread]
List: taglib-devel
Subject: taglib python bindings
From: tor () bash ! no (Tor Hveem)
Date: 2004-07-29 21:33:49
Message-ID: 200407292132.41827.tor () bash ! no
[Download RAW message or body]
Hi list!
A friend of mine (Eivind M. Hvidevold) and I have made it possible to generate
python bindings for taglib using SWIG, a simple makefile and a simple SWIG
instruction file.
I have these files provided in a source rpm. Just rebuild the .src.rpm to get
a binary rpm containing the bindings. SWIG generates som "ugly" warnings, but
I consider them harmless.
You can download it here: http://hveem.no/src/python-taglib-1.1-3emh.src.rpm
Scott, we would find it great if these bindings eventually could be included
in the distribution, ideally along with bindings for other languages as well.
Sample code:
from TagLib import *
fileref = FileRef("nice tune.mp3")
tag = fileref.tag()
year = tag.year()
artist = tag.artist()
genre = tag.genre()
album = tag.album()
print "%s %s %s %s" %(year, artist, album, genre)
--
Tor Hveem
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic