pytaglib

TagLib bindings for Python 2.x/3.x, written using Cython
Download

pytaglib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Michael Helmling
  • Publisher web site:
  • http://github.com/supermihi/

pytaglib Tags


pytaglib Description

pytaglib is a module that provides Python (2.x/3.x) bindings for TagLib. To my knowledge this so far is the only full-featured audio metadata library that supports python3.x.Also, the package gives you complete freedom over the tag names – you are not limited to common tags like ARTIST, ALBUM etc.; instead you may use any string as key as long as the underlying metadata format supports it (most of them do, including mp3, ogg, and FLAC). Moreover, you can even use multiple values of the same tag, to e.g. store two artists, several genres, and so on.RequirementsTo compile the bindings you need need the Cython compiler for your version of python. Note that some distributions do not yet ship Cython compiled for python3, but you can easily get it by typing:sudo easy_install3 cythoninto a console.pytaglib uses TagLib features that have been added only in version 1.8-BETA, so you need at least that version along with development headers.Installationpython3 setup.py buildpython3 setup.py test # optionalsudo python3 setup.py installReplace 3 by whatever Python version you use.Usage$ python3Python 3.2.2rc1 (default, Aug 14 2011, 19:02:04) on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import taglib>>> f = taglib.File("x.ogg")>>> f.tags{'ALBUM': , 'ARTIST': }>>> f.length472>>> f.sampleRate44100>>> f.tags = >>> del f.tags>>>>>> f.save()True>>>Product's homepage


pytaglib Related Software