This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This package contains a Python 3 Extension for playing audio files, reading and writing metadata and converting those files. For decoding and encoding files the libav library is used. Playback is handled by libportaudio.

The project website can be found at GitHub.


  • python3.x (Tested using python3.3)
  • libavcodec
  • libavformat
  • libavutil
  • libportaudio


Using pip:

pip install audiolayer

From GitHub:

git clone
cd python-audiolayer
python3 install


Reading song metadata:

>>> from audiolayer import Song
>>> filename = 'Finntroll - Trollhammaren.flac'
>>> song = Song(filename)
>>> song['artist']
>>> song['album']
>>> song['title']

Saving song metadata:

>>> song['album'] = 'Nattfödd'
>>> song['album']

Saving a copy of the song with the new metadata to a new file: >>>’Finntroll/Nattfödd - Trollhammaren.flac’) >>>

Converting the song (not implemented):

>>> converted = song.convert('Finntroll - Trollhammaren.ogg',
...                          format='opus', q=4)
>>> converted.filename
Finntroll - Trollhammaren.ogg

Playback (current implementation):

>>>  # Wait for the song to finish.

Playback (target implementation):

>>> song.pause()
>>> song.play_or_pause()
>>> song.playing_time


The unittests can be run using:

python3 test

It is also possible to use nose to run the tests:

python3 nosetests

Coding style

  • C code must be in compliance with pep7.
  • Python code must be in compliance with pep8.
  • All code must be covered by unittests.

To test the Python code for pep8 compliance, go to the project root directory and run:

python3 flake8


This project is licensed under the BSD 3-Clause License.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
audiolayer-0.1.1.tar.gz (9.9 kB) Copy SHA256 Checksum SHA256 Source Nov 5, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting