Help yourself with a Python module that best suits your needs of Pythonmediality.
These modules were created during the development of ProMedia Player.
Here are ones which are ready to become open-source (before the PMPlayer itself does).
I decided to release them now because they are realy useful and because they are unique.

decoder.py 1.5XB RELEASED!!! (scroll down to download)
    New things here:
    * Added support for OGG FLAC files (*.oga)
    * Added extra URL to update() function
    * update() switched to urllib2 for compatibility with Python 3
    * First updates after version 1.5WB available to update() function
    * Corrected some minor mistakes in the documentation
    * Discarded use of win32con module from win32 library (decoder.py does not depend on it any more)
    * Removed a terrible bug that appeared in codecs.pdc file for Unix and Unix-like systems
    --------------------------------------------------------
    A next version will fully support cygwin platform with Windows exes and have more decoding options.
    It will have latest versions of decoders packed in Windows ZIP file
    A testing on Mac is planed soon. If someone already tried, I would like to hear about it.




"decoder.py" is a cross-platform module for decoding compressed audio files. It uses external decoders by turning their stdout into file-like object which is completely compatible with wave.py module i.e. with its Wave_read class.
With it you can decode the following filetypes:
MPEG layer 1, 2 and 3 (*.mp1; *.mp2; *.mp3)
MPEG-4 HE-AAC (*.mp4, *.m4a, *.m4b, *.aac)
OGG Vorbis (*.ogg)
Free Audio Lossless Codec (*.flac)
OGG FLAC (*.oga)
Windows Media Audio (*.wma)

As it decodes on the fly you can use it in combination with audiodev.py or PyAudio or some other similar module to play a compressed audio file.
It is fully tested on:
Ubuntu Linux (10.04, 12.04, 12.10),
Raspbian (on Raspberry Pi),
Windows 98 SE,
Windows XP Professional
and Windows 7 Professional.

Requirements:
Python 2.5.x or later
Mutagen library
External command line decoders:
   lame(.exe), faad(.exe), flac(.exe), oggdec(.exe), wmadec.exe (on Windows) and ffmpeg (on Unix)
If you won't use particular filetype you won't be needing matching decoder.
For full documentation consult the source code.


You will get the mutagen and, in Win32 case, external decoders along with "decoder.py" in the same ZIP file.

Download:
decoder.py/1.5XB for Windows 1.65 MB
decoder.py/1.5XB for Unix 881 KB

   Note: Version "1.5WB" does not support OGG FLAC and it is not perfect
decoder.py/1.5WB for Windows 1.65 MB
decoder.py/1.5WB for Unix 876 KB
decoder.py/1.4ZB for Windows 1.64 MB
decoder.py/1.4ZB for Unix 876 KB

decoder.py/1.4YB for Windows 1.6 MB
decoder.py/1.4YB for Unix 865.3 KB

   Note: Version "1.4XB" does not support FLAC
decoder.py/1.4XB for Win32 1.53 MB
decoder.py/1.4XB for Unix 861 KB

Copyright © 2010-2013 by Dalen Bernaca All rights reserved.