My favorites | Sign in
Project Logo
                
Code license: New BSD License
Labels: python, python3, id3, id3v2, mp3, tag
Feeds:
People details
Project owners:
  Karoly.Lorentey

Stagger is an ID3v1/ID3v2 tag manipulation package written in pure Python 3.

The ID3v2 tag format is notorious for its useless specification documents and its quirky, mutually incompatible part-implementations. Stagger is to provide a robust tagging package that is able to handle all the various badly formatted tags out there and allow you to convert them to a consensus format.

The package is currently in beta stage, under active development. APIs are getting stable, but not yet final.

Features currently implemented:

>>> import stagger
>>> form stagger.id3 import *       # contains ID3 frame types

>>> tag = stagger.read_tag("track01.mp3")          

>>> tag[TIT2]                                      # tag is a MutableMapping
TIT2(utf-8 "Staralfur")

>>> tag[TIT2] = TIT2(text="The Show Must Go On")   # Explicit constructor
>>> tag[TIT2] = "The Show Must Go On"              # Implicit constructor
>>> tag[TIT2] = ("Foo", "Bar", "Baz")              # Multiple strings
>>> tag.title = "The Battle of Evermore"           # Alternative, friendlier API

>>> tag.write()








Hosted by Google Code