Metadata-Version: 1.1
Name: pytaglib
Version: 0.2.5
Summary: TagLib bindings for python 2.x/3.x, written using cython
Home-page: http://github.com/supermihi/pytaglib
Author: Michael Helmling
Author-email: helmling@mathematik.uni-kl.de
License: GPLv3+
Description: pytaglib – TagLib bindings for Python 2.x/3.x
        ==============================================
        
        Overview
        --------
        
        pytaglib is a package of 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.
         
        .. _Python: http://www.python.org
        .. _Taglib:  http://taglib.github.com
        
        
        Requirements
        ------------
        
        To 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 cython
        
        into 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. The recent
        releases of most linux flavours nowadays ship taglib-1.8, including:
        
        - Ubuntu 12.10
        - Debian "experimental" branch
        - Linux Mint 14
        - Up-To-Date Arch Linux
        - Gentoo Linux (unstable)
        - Fedora 17
        
        ..  _Cython: http://www.cython.org
          
        Installation
        ------------
        
        The easiest version is to use easy_install:
        
        ::
            sudo easy_install -U pytaglib
        
        On most systems, this will install the python2 version; use something like
        
        ::
            sudo easy_install3 -U pytaglib
        
        to build the package for python3 (the exact command depends on your
        distribution).
        
        Alternatively, you can download the source tarball and compile manually:
        
        ::
        
        	python3 setup.py build
        	python3 setup.py test  # optional
        	sudo python3 setup.py install
        
        Replace ``3`` by whatever Python version you use.
        
        Usage
        -----
        
        ::
        
        	$ python3
        	Python 3.2.2rc1 (default, Aug 14 2011, 19:02:04) 
        	[GCC 4.6.1] on linux2
        	Type "help", "copyright", "credits" or "license" for more information.
        	>>> import taglib
        	>>> f = taglib.File("x.ogg")
        	>>> f.tags
        	{'ALBUM': ['omgwtf', 'lol'], 'ARTIST': ['öätrnüö']}
        	>>> f.length
        	472
        	>>> f.sampleRate
        	44100
        	>>> f.tags["ARTIST"] = ["A new artist"]
        	>>> del f.tags['ALBUM']
        	>>> 
        	>>> f.save()
        	True
        	>>>
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
